Support ongoing development - donate to help us maintain and improve the platform. 🖥️ Support sqltest →
SQL code copied to buffer
Task 37:

Highly Paid Employees

Firebird
Write a query that retrieves a list of all employees whose salary is higher than the salary of their department manager.
The result should contain the following columns: EMP_NO, FIRST_NAME, LAST_NAME - employee data, DEPARTMENT - the name of the department in which he works, SALARY - his salary, MANAGER_SALARY - department manager salary.
Sort the result by EMP_NO in default order.
Expected result Columns: 6 · Rows: 4
EMP_NO FIRST_NAME LAST_NAME DEPARTMENT SALARY MANAGER_SALARY

Write your query below and click "Check it!". Tables are described in the right pane.

The query result will appear here. Ctrl+Enter - Run query

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.