← BYTES
Database·Starter·Ref: 13.1.13
What does the GROUP BY clause do in a SQL query?
Have a question about this video? Mention reference 13.1.13 when you contact us.
a.Sorts rows in descending order
b.Groups rows that share the same value(s) in specified column(s) into a single summary row per group, typically used alongside aggregate functions like COUNT, SUM, or AVG
c.Deletes duplicate rows permanently
d.Joins two tables together
GROUP BY collapses multiple rows sharing the same grouping-column value(s) into one output row per distinct group, letting aggregate functions compute a value (count, sum, average, etc.) per group rather than across the entire table at once -- e.g., 'total sales GROUP BY region' gives one summary row per region.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES13113#Database