Blog

Mysql

1 post tagged mysql — the same founder-tested patterns, filtered.

SQL: Get records having min/max value per group

SQL: Get records having min/max value per group

The solution doesn't require any changes to the DB scheme (denormalization or creation of views) and can be performed in the scope of a single SQL query.

Reading this because something is going wrong?

A free code audit gives you a written assessment of your codebase in plain English.

Get a Free Code Audit

Rated 4.8/5 on Clutch · you keep the write-up either way