题解 | #查询结果去重#
查询结果去重
http://www.nowcoder.com/practice/82ebd89f12cf48efba0fecb392e193dd
二种方式
1.
distinct 关键字
select distinct university from user_profile
distinct去重,放在列的前面使用。
2.
分组
SELECT
university
from user_profile
group by university
以分组来筛选出去重的结果