Aggregate functions compute a single result from a set of values.
| Function | Description |
|---|---|
| COUNT() | Number of rows |
| SUM() | Total of numeric column |
| AVG() | Average value |
| MIN() | Minimum value |
| MAX() | Maximum value |
GROUP BY
SELECT city, COUNT(*) as total
FROM crime_scene_report GROUP BY city;