Mysql20题
查找员工编号emp_no为10001其自入职以来的薪水salary涨幅(总共涨了多少)growth
http://www.nowcoder.com/questionTerminal/c727647886004942a89848e2b5130dc2
直接聚合函数,大减小
select max(salary)-min(salary) growth from salaries where emp_no = 10001;
查找员工编号emp_no为10001其自入职以来的薪水salary涨幅(总共涨了多少)growth
http://www.nowcoder.com/questionTerminal/c727647886004942a89848e2b5130dc2
select max(salary)-min(salary) growth from salaries where emp_no = 10001;
相关推荐