Yurttas/PL/DBL/mssql/F/01/PC/q17.sql
Revision as of 04:35, 3 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">ββREM REM q17.sql REM REM Find the manufacturers of PC's with at least REM three different speeds. REM: SELECT P.m...")
1/*
2REM
3REM q17.sql
4REM
5REM Find the manufacturers of PC's with at least
6REM three different speeds.
7REM
8*/
9
10SELECT P.maker
11FROM Product P, PC
12WHERE P.model=PC.model
13GROUP BY P.maker
14HAVING COUNT(DISTINCT speed)>=3;