Yurttas/PL/DBL/postgres/F/01/PC/q12.sql
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 q12.sql REM REM Delete all PC's with less than 2 gigabyte of hard disk. REM: SELECT current_schema(); SE...")
1/*
2REM
3REM q12.sql
4REM
5REM Delete all PC's with less than 2 gigabyte of hard disk.
6REM
7*/
8
9SELECT current_schema();
10SET search_path to "pc";
11
12DELETE FROM Product
13WHERE model IN (SELECT model
14 FROM PC
15 WHERE hd<2.0);
16
17DELETE FROM PC
18WHERE hd<2.0;