Advertisement
DimitarVasilev

Untitled

May 17th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.23 KB | None | 0 0
  1. Display how far IS each employee's salary from the maximum salary for the position he is on.
  2.  
  3. select e.first_name, e.last_name, j.job_id, (j.max_salary-e.salary) "To MAX SALARY"
  4. from employees e join jobs j on j.job_id=e.job_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement