programming-examples/sql/SubqueriesHRDatabase/Write a query in SQL to display the department code and name for all departments which located in the city London.sql
2019-11-18 14:05:53 +01:00

11 lines
396 B
SQL

/*Write a query in SQL to display the department code and name for all departments which located in the city London.
*/
SELECT department_id, department_name
FROM departments
WHERE location_id =
(
SELECT location_id
FROM locations
WHERE city = 'London'
);