Yurttas/PL/DBL/mysql/F/01/00/PC/q18.sql
Revision as of 16:26, 3 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">→REM REM q18.sql REM REM Find the manufacturers who sell exactly three different REM models of PC. REM: \. set-db...")
1/*
2REM
3REM q18.sql
4REM
5REM Find the manufacturers who sell exactly three different
6REM models of PC.
7REM
8*/
9
10\. set-db.sql
11
12SELECT P.maker
13FROM Product P, PC
14WHERE P.model=PC.model
15GROUP BY P.maker
16HAVING COUNT(DISTINCT PC.model)=3;