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.
11 lines
389 B
MySQL
11 lines
389 B
MySQL
5 years ago
|
/*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";
|