Yurttas/PL/DBL/oracle/F/01/PC/q09.sql

From ZCubes Wiki
Revision as of 23:03, 4 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 SELECT P.maker, R.price FROM ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1REM
 2REM q09.sql
 3REM
 4REM Find the maker of the color printer with the lowest price.
 5REM
 6
 7SELECT P.maker, R.price
 8FROM Product P, Printer R
 9WHERE P.model=R.model
10  AND R.price IN (SELECT MIN(price)
11                  FROM Printer
12                  WHERE color='true');