Answer to Question #280610 in Databases | SQL | Oracle | MS Access for sql_guy

Question #280610

/*7. Show any employee who is not a manager, but earns more than any manager in

the employees table. Show first name, last name, job id, and salary. Sort the result 

by salary.*/


What are some ways of writing is query?


1
Expert's answer
2021-12-17T06:57:10-0500
SELECT employee.*
FROM your_table_name AS employee
JOIN your_table_name AS manager ON manager.EMPNO = employee.MGR 
WHERE employee.SAL > manager.SAL 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS