programming-examples/sql/SubqueriesHRDatabase/Write a query to display the employee name( first name and last name ) and hiredate for all employees in the same department as Clara. Exclude Clara.sql

11 lines
389 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a query to display the employee name( first name and last name ) and hiredate for all employees in the same department as Clara. Exclude Clara.
*/
SELECT first_name, last_name, hire_date
FROM employees
WHERE department_id =
( SELECT department_id
FROM employees
WHERE first_name = "Clara")
AND first_name <> "Clara";