Hive去重:distinct與group by

以下面兩個案例介紹distinct、group by的底層原理。
【案例 1】去重計數案例

select count(1) from(
	select age
	from student
	group by age
)b

【案例2】簡化的去重計數

select count(distinct age)
from student

1 底層原理

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章