Skip to content

Commit 93bc7b3

Browse files
authored
Create # 32
1 parent 004ef3f commit 93bc7b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

w3resource/# 32

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 32. From the following table, write a SQL query to find those employees who are working as a manager. Return employee name, job name, department name, and location.
2+
3+
4+
SELECT e.emp_name,
5+
e.job_name,
6+
d.dep_name,
7+
d.dep_location
8+
FROM employees e,
9+
department d
10+
WHERE e.dep_id = d.dep_id
11+
AND e.emp_id IN
12+
(SELECT manager_id
13+
FROM employees) ;

0 commit comments

Comments
 (0)