I have a table containing news posts and would like to get the entire last added newspost of every category.
The table contains these columns:
- id, title, images, description, category, date
Example: I have 20 posts in 3 categories. The last post by date of every category is returned so I get 3 posts back.
think the smallest and most usable solution for this is that one:
an other approach will be the group having with subquery…
@eggyal:
This will use the LASTEST inserted with max_date, because of the internal sortorder of the rdbms…