题解 | #找出所有员工当前薪水salary情况#
找出所有员工当前薪水salary情况
http://www.nowcoder.com/practice/ae51e6d057c94f6d891735a48d1c2397
找出所有员工当前薪水salary情况
两种处理方法:
1、distinct 与 order by 的 结合使用
select distinct salary
from salaries
order by salary desc;2、group by 与 order by 的 结合使用
select salary
from salaries
group by salary
order by salary desc;学习mysql,可以看相关的总结博客:
