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

From ZCubes Wiki
Revision as of 00:43, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">/* REM REM q061.sql REM REM Find all employees who do not work for 'First Bank Corporation'. REM REM [ Assume that peo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q061.sql
 4REM
 5REM Find all employees who do not work for 'First Bank Corporation'.
 6REM
 7REM [ Assume that people may work for several companies. ]
 8REM
 9*/
10
11SELECT current_schema();
12SET search_path to "companyb";
13
14SELECT employeename 
15FROM Employee
16WHERE employeename NOT IN (SELECT employeename 
17                           FROM Works 
18                           WHERE companyname='First Bank Corporation');