Get Employees Who Are Below Average Salary After A Raise

前端 未结 3 1014
悲哀的现实
悲哀的现实 2021-01-27 04:58

I need to get fname, lname, salary of employees who are $400.00 below the average salary even after geting a 10% salary raise.

I\'m able to get employees who\'s salary i

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-27 05:13

    select Fname, Lname, Salary, 1.10 * Salary as NewSalary from employee where ((1.10 * Salary) - (select AVG(salary) from employee)) <= 400;

提交回复
热议问题