Difference between revisions of "Yurttas/PL/DBL/mssql/F/01/PC/q17.sql"
Jump to navigation
Jump to search
(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...") |
(No difference)
|
Latest revision as of 04:35, 3 November 2013
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;