Yurttas/PL/DBL/postgres/F/01/Company-B/q03.sql

 1/*
 2REM
 3REM q03.sql
 4REM
 5REM Find the name, street, and city of of all employees who
 6REM work for 'First Bank Corporation' and earn more than $10,000.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "companyb";
12
13SELECT *
14FROM Employee
15WHERE employeename IN (SELECT employeename 
16                       FROM Works 
17                       WHERE companyname='First Bank Corporation' 
18                         AND salary > 10000);