I have a table with texts, all of different type, I have field named
type to know which is which. What I would want is with one SQL query
select the latest from each type, but this query...
select id, headline, type from texts group by type order by date;
will give the first of each type. I would like to specify "order by"
before "group by", but that won't work. Is there a way to list the
latest of each type?
thanks for any answers...
--
Sandman[.net]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php