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

From ZCubes Wiki
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;