Yurttas/PL/DBL/mysql-f-2010/01/PC/q09.sql
Revision as of 02:10, 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: \. set-db.sql SELECT P....")
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');