Tags / greatest-n-per-group
Understanding and Applying Group By with ROW_NUMBER() Function in SQL Server for Advanced Analytics
Joining Two Tables and Getting the Most Recent Records for a Given Name: A SQL Solution Using Correlated Subqueries
Finding the First Row for Each ID-Grade Combination Using Window Functions in MySQL
Optimizing SQL Queries to Find Nearest Records: A Door Data Example
Oracle SQL Query to Extract Last Entry Date per Category