Yurttas/PL/DBL/oracle/F/01/Company-B/q10.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 q10.sql REM REM Find the company with the most employees. REM SELECT companyname FROM Works GROUP BY comp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1REM
 2REM q10.sql
 3REM
 4REM Find the company with the most employees.
 5REM
 6
 7
 8SELECT companyname 
 9FROM Works 
10GROUP BY companyname 
11HAVING COUNT(*) >= ALL (SELECT COUNT(*) 
12                        FROM Works 
13                        GROUP BY companyname);