DEV Community


Posted on • Originally published at

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:

Discussion (0)