nikomou
02-06-2009, 10:21 AM
Hello,
What i have is a simple SQL query to show all the manufacturers in my table - quite simply by using
SELECT manufacturer FROM table GROUP BY manufacturer
But what I would like is to have another query inside the one above? would that work? This one would show all the Models within the Manufacturers.
E.g.
Make 1
Make 1 product 1, Make 1 product 2, Make 1 product 3
Make 2
Make 2 product 1, Make 2 product 2, Make 2 product 2
Or is there an easier way to do this?
Thanks for your time :)
What i have is a simple SQL query to show all the manufacturers in my table - quite simply by using
SELECT manufacturer FROM table GROUP BY manufacturer
But what I would like is to have another query inside the one above? would that work? This one would show all the Models within the Manufacturers.
E.g.
Make 1
Make 1 product 1, Make 1 product 2, Make 1 product 3
Make 2
Make 2 product 1, Make 2 product 2, Make 2 product 2
Or is there an easier way to do this?
Thanks for your time :)