Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 299 Bytes

group_by.md

File metadata and controls

9 lines (7 loc) · 299 Bytes

Group By Statement

The GROUP BY statement groups rows that have the same values into summary rows, like "find the number of commits for each username or email".

SELECT * FROM commits GROUP BY name
SELECT * FROM commits GROUP BY name, email
SELECT * FROM commits GROUP BY LEN(name)