8 lines
389 B
MySQL
8 lines
389 B
MySQL
|
/*2. Write a query in SQL to display the first and last name, department, city, and state province for each employee. */
|
||
|
SELECT E.first_name,E.last_name,
|
||
|
D.department_name, L.city, L.state_province
|
||
|
FROM employees E
|
||
|
JOIN departments D
|
||
|
ON E.department_id = D.department_id
|
||
|
JOIN locations L
|
||
|
ON D.location_id = L.location_id;
|