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 底层原理

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