最后一天的工资减第一天的工资 为涨/跌幅
查找员工编号emp_no为10001其自入职以来的薪水salary涨幅(总共涨了多少)growth
http://www.nowcoder.com/questionTerminal/c727647886004942a89848e2b5130dc2
select (
select salary from salaries
where emp_no = '10001'
order by to_date desc limit 1
)-(
select salary from salaries
where emp_no = '10001'
order by from_date asc limit 1
)
growth ;