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

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