programming-examples/sql/SubqueriesHRDatabase/Write a query to determine who earns more than Mr. Ozer.sql
2019-11-18 14:05:53 +01:00

10 lines
259 B
SQL

/*Write a query to determine who earns more than Mr. Ozer.
*/
SELECT first_name, last_name, salary
FROM employees
WHERE salary >
(SELECT salary
FROM employees
WHERE last_name='Ozer')
ORDER BY last_name;