题解
查找薪水涨幅超过15次的员工号emp_no以及其对应的涨幅次数t
http://www.nowcoder.com/questionTerminal/6d4a4cff1d58495182f536c548fee1ae
select distinct salary
from salaries
where to_date="9999-01-01"
order by salary desc
采用distinct去重复即可。尽量避免使用group by(如果不熟悉的前提下)
查找薪水涨幅超过15次的员工号emp_no以及其对应的涨幅次数t
http://www.nowcoder.com/questionTerminal/6d4a4cff1d58495182f536c548fee1ae
select distinct salary
from salaries
where to_date="9999-01-01"
order by salary desc
采用distinct去重复即可。尽量避免使用group by(如果不熟悉的前提下)
相关推荐