I have this two tables in the image from a test that I need to solve:
I need to Select a list of employees with the salary greater than their line manager’s (chief’s)
I tryed:
SELECT NAME
FROM Employee, Employee Chief
WHERE Employee.Chief_ID =Chief_ID
AND Employee.SALARY > Chief.SALARY;
But I think the question is incomplete, and It can't return anything can someone suggest another query?