Tags / greatest-n-per-group
Understanding Oracle Database and Querying Records: Mastering ROW_NUMBER() for Second-Highest Records Retrieval
Understanding the Limitations of Min(date) in SQL Case Statements: Workarounds without Window Functions
How to Use Lateral Joins to Get the Most Recent Exchange Rate for Each Transaction in PostgreSQL