DEV Community

Astrid
Astrid

Posted on • Originally published at developerastrid.com

How to use SQL GROUP BY to group and sort data

This article describes how to use the SQL GROUP BY clause to group data in order to aggregate a subset of the table contents. This involves two new SELECT statement clauses: the GROUP BY clause and the HAVING clause.

Link to the original article: https://www.developerastrid.com/en/sql/sql-grouping-data/

Top comments (0)