题解 | #找出所有员工当前薪水salary情况#
找出所有员工当前薪水salary情况
http://www.nowcoder.com/practice/ae51e6d057c94f6d891735a48d1c2397
知识点
- 只显示一次distinct()
- 当前where to_date=
代码
select distinct(salary) from salaries
where to_date='9999-01-01'
order by salary DESC
找出所有员工当前薪水salary情况
http://www.nowcoder.com/practice/ae51e6d057c94f6d891735a48d1c2397
select distinct(salary) from salaries
where to_date='9999-01-01'
order by salary DESC
相关推荐