Yurttas/PL/DBL/mysql/F/01/00/PC/q09.sql

Revision as of 16:26, 3 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">β†’β€ŽREM REM q09.sql REM REM Find the maker of the color printer with the lowest price. REM: \. set-db.sql SELECT P....")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
 1/*
 2REM
 3REM q09.sql
 4REM
 5REM Find the maker of the color printer with the lowest price.
 6REM
 7*/
 8
 9\. set-db.sql
10
11SELECT P.maker, R.price
12FROM Product P, Printer R
13WHERE P.model=R.model
14  AND R.price IN (SELECT MIN(price)
15                  FROM Printer
16                  WHERE color='true');