For brevity, let's say I have the following 3 tables (m:n): Articles, Topics and a joining table ArticleTopic. I need to get the top n articles for n topics. Each article should only show once for the entire result set.
Article: -Id -Title
Topic: -Id -Name
ArticleTopic: -Id -ArticleId -TopicId
Thanks for your help!