📜  groupby sort sql hive - SQL 代码示例
📅  最后修改于: 2022-03-11 15:05:20.055000             🧑  作者: Mango
代码示例1
SELECT
place,
cnt,
sum_
FROM (
SELECT
place,
count(*) as cnt,
sum(weight) as sum_
FROM a
GROUP BY place
) a
ORDER BY place;