Tags / greatest-n-per-group
Retrieving Maximum Values: Sub-Query vs Self-Join Approach
Understanding the Limitations of SQL's LIMIT Function: Alternatives for Microsoft SQL Server
Optimizing Queries for Top Rows with Latest Related Row in Joined Tables
Querying Single Rows in a Table with Multiple Rows in a Subquery Using Row Number and Aggregate Functions
Querying Each Student's 3rd Best Assignment Mark in Each Subject Using Window Functions
Joining Two Tables and Getting the Most Recent Records for a Given Name: A SQL Solution Using Correlated Subqueries