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

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