I have a database that has all my site content in it, each page broken down into various components. I want to generate a listing of the distinctive TYPEs of entries that are in the database.
I've tried something like...
SELECT DISTINCT Type FROM datasource
...but this only returns the TYPE field (not to mention wierd results...I only have about 15 distinct TYPEs...this returns 71 out of 117?!?). The reason I need the complete record is that I use a templating scheme and do not want to make "special-case" templates.
To recap, I want to list 1 complete record for each distinct TYPE.
Thanks to all those who have helped me out and the past and TIA.
Sean Shrum
I've tried something like...
SELECT DISTINCT Type FROM datasource
...but this only returns the TYPE field (not to mention wierd results...I only have about 15 distinct TYPEs...this returns 71 out of 117?!?). The reason I need the complete record is that I use a templating scheme and do not want to make "special-case" templates.
To recap, I want to list 1 complete record for each distinct TYPE.
Thanks to all those who have helped me out and the past and TIA.
Sean Shrum