The GROUP BY Statement
The GROUP BY statement is used in conjunction with the aggregate functions to group the result-set by one or more columns.
Refer: http://www.w3schools.com/sql/sql_groupby.asp
Refer: http://www.w3schools.com/sql/sql_groupby.asp
SQL GROUP BY Syntax
SELECT column_name, aggregate_function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name;
FROM table_name
WHERE column_name operator value
GROUP BY column_name;
No comments:
Post a Comment