QUESTION POSED ON: 20 July 2007
Hope you can find a solution to this. I've searched the site and tried
'self-joins' but can't get this to work. The current solution we're running
requires 15 queries to get the necessary result! I have three MySQL tables:
- One stores articles with publish dates and other details.
- One stores industries.
- One serves as a join for the two, where an article is linked to one or
more industries using the article IDs and industry IDs.
I want to display the latest two articles from each industry. Can
this be done in one or maybe two queries?
|