【发布时间】:2014-12-31 17:14:19
【问题描述】:
- 产品(制造商、型号、类型)
- 笔记本电脑(型号、价格、速度、内存、高清、屏幕)
- PC(型号、价格、速度、内存、高清)
- 打印机(型号、价格、颜色、价格)
我现在正在寻找最便宜的彩色打印机的制造商
我的查询:
select maker, price from
product join printer
on product.model=printer.model
where color='y' and price <= all(select price from printer where color='y')
结果是正确的;但是错误消息是
您的查询在第一个(可用)上返回了正确的数据集 数据库,但在第二次检查时返回了不正确的数据集 数据库。 * 错误的记录数(减去 2)
【问题讨论】:
标签: sql sql-server