I have a table called NewsArticles that has column identifiers, LanguageID, Date, Title, ArticleContent. I want to create a presentation that selects the 5 most recent news articles in each language in the database.
For example, if I have 3 languages, say, English, French and German, the query should return 15 records containing the 5 latest news articles in England, 5 ... you get a picture. How can I build such a query?
For each unique LanguageID in NewsArticles, return 5 entries, sorted by date in descending order.
source
share