programming-examples/sql/SubqueriesHRDatabase/Write a query in SQL to display the city of the employee whose ID 134 and works there.sql

11 lines
424 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*Write a query in SQL to display the city of the employee whose ID 134 and works there.*/
SELECT city
FROM locations
WHERE location_id =
(SELECT location_id
FROM departments
WHERE department_id =
(SELECT department_id
FROM employees
WHERE employee_id=134));