GROUP BY groups rows having the same values in specified columns, often used with aggregate functions.
SELECT department, COUNT(*)
FROM employees
GROUP BY department;GROUP BY groups rows having the same values in specified columns, often used with aggregate functions.
SELECT department, COUNT(*)
FROM employees
GROUP BY department;