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

From ZCubes Wiki
Revision as of 04:31, 3 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">/* REM REM q07.sql REM REM Find all employees who earn more than every employee of REM 'Small Bank Corporation'. REM *...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 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 employeename 
11FROM Works 
12WHERE salary > ALL (SELECT salary 
13                    FROM Works 
14                    WHERE companyname='Small Bank Corporation');