急急急,这道题用自连接怎么写?
sql吧
全部回复
仅看楼主
level 1
题目:编写sql语句,查询每个供应商价格最低的产品的信息,结果中包含供应商的编号(vend id)价格最低的产品的编号(prod id)及价格(prod price);
这张表叫Products
毫无思路[乖]
2022年12月08日 06点12分 1
level 4
select * from (select * from products order by prod_prince asc) group by prod_id
2022年12月10日 11点12分 2
不行哎。提示是:除非另外还指定了 TOP、OFFSET 或 FOR XML,否则,ORDER BY 子句在视图、内联函数、派生表、子查询和公用表表达式中无效。
2022年12月10日 11点12分
@PartFive丶 好的谢谢![玫瑰]
2022年12月10日 12点12分
1