loading..
Русский    English
10:18

Exercise #18

Find the makers of the cheapest color printers. Result set: maker, price.

Find two mistakes in the following solution to this task:

Console
Execute
  1. SELECT c.maker, a.priceA price
  2. FROM (SELECT MIN(price) priceA
  3.       FROM Printer
  4.       WHERE color ='y'
  5.       ) a INNER JOIN
  6.       Printer b ON a.priceA = b.price INNER JOIN
  7.       Product c ON b.model = c.model;

T&S

To solve the problem on SQL-EX.RU

Bookmark and Share
The book was updated
yesterday
©SQL-EX,2008 [Evolution] [Feedback] [About] [Links] [Team]
All right reserved.
Rambler's Top100