Back to Developer Roadmap

Group By Work

src/data/question-groups/sql-queries/content/group-by-work.md

4.0362 B
Original Source

GROUP BY is a standard SQL command that groups rows with the same value in the specified column. You should use with aggregate functions such as COUNT, MIN, MAX, etc.

The query below illustrates the GROUP BY clause:

sql
SELECT columnName FROM Table
GROUP BY columnName