programming-examples/sql/SubqueriesHRDatabase/Write a query to display the name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163.sql

9 lines
284 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a query to display the name ( first name and last name ) for those employees who gets more salary than the employee
whose id is 163.*/
SELECT first_name, last_name
FROM employees
WHERE salary >
( SELECT salary
FROM employees
WHERE employee_id=163
);