Select query with aggregate 聚合 functions over all rows
SELECT AGG_FUNC(column_or_expression) AS aggregate_description, …
FROM mytable
WHERE constraint_expression;
group by 的神奇用法
通过这个可以解决很多不同的问题
SELECT building,sum(years_employed)
FROM employees
GROUP BY BUILDING