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

 1/*
 2REM
 3REM q07.sql
 4REM
 5REM Find all employees who earn more than every employee of
 6REM 'Small Bank Corporation'.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "companyb";
12
13SELECT employeename 
14FROM Works 
15WHERE salary > ALL (SELECT salary 
16                    FROM Works 
17                    WHERE companyname='Small Bank Corporation');