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

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 q03.sql REM REM Find the name, street, and city of of all employees who REM work for 'First Bank Corporation'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 1REM
 2REM q03.sql
 3REM
 4REM Find the name, street, and city of of all employees who
 5REM work for 'First Bank Corporation' and earn more than $10,000.
 6REM
 7
 8SELECT *
 9FROM Employee
10WHERE employeename IN (SELECT employeename 
11                       FROM Works 
12                       WHERE companyname='First Bank Corporation' 
13                         AND salary > 10000);