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

From ZCubes Wiki
Revision as of 22:56, 4 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 peopl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1REM
 2REM q061.sql
 3REM
 4REM Find all employees who do not work for 'First Bank Corporation'.
 5REM
 6REM [ Assume that people may work for several companies. ]
 7REM
 8
 9SELECT employeename 
10FROM Employee
11WHERE employeename NOT IN (SELECT employeename 
12                           FROM Works 
13                           WHERE companyname='First Bank Corporation');