This feels like it should have a basic solution but I don't seem to be getting it.
Take this query:
SELECT Category FROM Article
GROUP BY Category
I want to effectively do this:
SELECT Category, DatePublished FROM Article
GROUP BY Category
ORDER BY DatePublished DESC
I don't really want to select DatePublished, but it seemed to make sense to order by it. That doesn't work though.
Basically I want to order categories by the most recent DatePublished article.