Skip to content

Commit c63e0ef

Browse files
authored
Create # 14
1 parent b5ce225 commit c63e0ef

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

w3resource/# 14

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 14. From the following table, write a SQL query to find those employees who are senior to BLAZE and working at PERTH or BRISBANE. Return complete information about the employees.
2+
3+
4+
SELECT *
5+
FROM employees e,
6+
department d
7+
WHERE d.dep_location IN ('PERTH',
8+
'BRISBANE')
9+
AND e.dep_id = d.dep_id
10+
AND e.hire_date <
11+
(SELECT e.hire_date
12+
FROM employees e
13+
WHERE e.emp_name = 'BLAZE') ;

0 commit comments

Comments
 (0)