Blog Archives

Query to select top-n Records from each Group (TSQL)

Often I come accross a task where I need to select the top-n records from each group from a given set of data, where each subgroup is defined by having a specific attribute in common. To demonstrate how this is

Tagged with: , , , ,
Posted in Databases, TSQL (MSSQL)