loading..
Ðóññêèé    English
17:58

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
Tags
aggregate functions Airport ALL AND AS keyword ASCII AVG Battles Bezhaev Bismarck C.J.Date calculated columns Cartesian product CASE cast CHAR CHARINDEX Chebykin check constraint classes COALESCE common table expressions comparison predicates Computer firm CONSTRAINT CONVERT correlated subqueries COUNT CROSS APPLY CTE data type conversion data types database schema DATEADD DATEDIFF DATENAME DATEPART DATETIME date_time functions DDL DEFAULT DEFAULT VALUES DELETE DISTINCT DML duplicates edge equi-join EXCEPT exercise (-2) More tags
The book was updated
month ago
©SQL-EX,2008 [Evolution] [Feedback] [About] [Links] [Team]
All right reserved.