Tags / greatest-n-per-group
How to Fix SQL Distinct with ORDER BY: Avoiding Duplicates and Getting the Right Results
Oracle SQL Query to Extract Last Entry Date per Category
Joining Two Tables and Getting the Most Recent Records for a Given Name: A SQL Solution Using Correlated Subqueries
Understanding the Limitations of ROW_NUMBER() and Finding Alternative Solutions for Partitioned Data
Understanding the Limitations of Min(date) in SQL Case Statements: Workarounds without Window Functions
Understanding the Limitations of SQL's LIMIT Function: Alternatives for Microsoft SQL Server
Selecting the Maximum Time from a DateTime Column Group by Another DateTime Column Using PostgreSQL's DISTINCT ON Clause