richtestani
Instructor
- May 3, 2004
- 20
I am trying to sort my records by date, with the most current date first, then group it by a criteria. Problem I am having is I can group by [column] but it will only show the first records of each group which are the earlier dated records.
[tt]SELECT areas.id AS arid, area, articles.id AS aid, articles.article_title, articles.postdate, articles.areaid FROM articles LEFT JOIN areas ON articles.areaid=areas.id WHERE postdate <= "2004-10-10" GROUP BY arid;[/tt]
Thanks
Rich
[tt]SELECT areas.id AS arid, area, articles.id AS aid, articles.article_title, articles.postdate, articles.areaid FROM articles LEFT JOIN areas ON articles.areaid=areas.id WHERE postdate <= "2004-10-10" GROUP BY arid;[/tt]
Thanks
Rich