You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
310 B
SQL

/*7. Write a query in SQL to display the first and last name and salary for those employees who earn less than the employee
earn whose number is 182.*/
SELECT E.first_name, E.last_name, E.salary
FROM employees E
JOIN employees S
ON E.salary < S.salary
AND S.employee_id = 182;