Answer the question
In order to leave comments, you need to log in
How to make LIMIT on the first table?
Guys, there are two tables, Brands and their cars. One brand has many cars.
How to make LIMIT 0, 2 on Brands table?
So that I can see only two brands and ALL cars for them?
SELECT *
FROM `brands` t1
LEFT JOIN `auto` t2
ON t2.`id_brand` = t1.`id`
LIMIT 1
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question