Answers for "hive distribute by"

SQL
0

groupby sort sql hive

SELECT 
    place, 
    cnt, 
    sum_ 
FROM (
    SELECT 
        place, 
        count(*) as cnt, 
        sum(weight) as sum_ 
    FROM a 
    GROUP BY place
) a 
ORDER BY place;
Posted by: Guest on May-21-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language