Browse by Tags

All Tags » top n (RSS)

Return TOP N rows

The TOP Clause returns top rows from the table based on the number or percentage value What if you want to have TOP N rows for each group? The following explains it ( The purpose is to return top 3 orders for each customer based on the most recent orderdate...
Posted by Madhivanan | 3 comment(s)
Filed under: , ,