1. 顯示工資漲幅,員工編號,原來的工資和增長的工資: 部門號十、50、110的有5%的漲幅, 部門號爲60的漲10%的工資部門號爲20和80漲幅爲15%,部門爲90的不漲工資

SELECT * FROM ( select 'raise 5%' raise,e.employee_id as employee_id,e.salary,e.salary*0.05 as newsalary from employees e where e.department_id in (10,50,110)) UNION ALL SELECT * FROM
相關文章
相關標籤/搜索