Professional Documents
Culture Documents
The GROUP BY statement groups rows that have the same values into
summary rows, like "find the sum of price of stock in each city".
GROUP BY Syntax
Select fieldname, aggregatefunction
From table name
Group by fieldname;
Note: fieldname mentioned in both places is same on which grouping is done.