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

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