SQL - Advanced Joins
Given tables
Query 1:
Query 2:
products (10000 rows) and categories (10 rows), which join order is likely to run faster?Query 1:
SELECT * FROM products JOIN categories ON products.cat_id = categories.id;Query 2:
SELECT * FROM categories JOIN products ON products.cat_id = categories.id;