stuart1980
Programmer
Lets say we have a 'person' table and a 'car' table. And the primary key for these tables are person_id and car_id respectively. A person can have many cars.
How could you select the first 3 cars for each person in ONE query? I don't want to requery for each person, nor do I want to filter the result set in my code.
Thanks in advance.
How could you select the first 3 cars for each person in ONE query? I don't want to requery for each person, nor do I want to filter the result set in my code.
Thanks in advance.