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.

10 lines
346 B
SQL

/*Write a query to display the employee name( first name and last name ) and department for all employees for any existence
of those employees whose salary is more than 3700.
*/
SELECT first_name, last_name, department_id
FROM employees
WHERE EXISTS
(SELECT *
FROM employees
WHERE salary >3700 );