Yurttas/PL/DBL/mysql-f-2010/01/Company-B/q03.sql

Revision as of 02:01, 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 Corporatio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 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
10\. set-db.sql
11
12SELECT *
13FROM Employee
14WHERE employeename IN (SELECT employeename
15                       FROM Works
16                       WHERE companyname='First Bank Corporation'
17                         AND salary > 10000);