Yurttas/PL/DBL/postgres/F/01/PC/q17.sql

From ZCubes Wiki
Revision as of 23:48, 4 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 cur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q17.sql
 4REM
 5REM Find the manufacturers of PC's with at least
 6REM three different speeds.
 7REM
 8*/
 9
10SELECT current_schema();
11SET search_path to "pc";
12
13SELECT P.maker
14FROM Product P, PC
15WHERE P.model=PC.model
16GROUP BY P.maker
17HAVING COUNT(DISTINCT speed)>=3;