Tags / greatest-n-per-group
Retrieving the Party with the Maximum Number of Votes in MS Access SQL
Using Window Functions to Get the Highest Metric for Each Group
Optimizing SQL Queries to Find Nearest Records: A Door Data Example
Finding the First Row for Each ID-Grade Combination Using Window Functions in MySQL