Yurttas/PL/DBL/postgres/F/01/PC/q15.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 q15.sql REM REM Find those hard-disk sizes that occur in two or more PC's. REM For each laptop made by manu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/*
 2REM
 3REM q15.sql
 4REM
 5REM Find those hard-disk sizes that occur in two or more PC's.
 6REM For each laptop made by manufacturer 'E', add one inch to
 7REM screen size and subtract $100 from the price.
 8REM
 9*/
10
11SELECT current_schema();
12SET search_path to "pc";
13
14SELECT hd
15FROM PC
16GROUP BY hd
17HAVING COUNT(model)>=2;