where a.department =b.department 结果:
(15) 查询每种商品的商品编号、商品名称、订货数量和订货单价。 命令:
select b.ProductName ,a.ProductNo ,a.total,a.price from ( select sum(quantity ) as total,ProductNo ,price from OrderDetail group by ProductNo ,price ) as a , Product as b where a.ProductNo =b.ProductNo 结果:
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库数据库SQL查询语句实验报告(5)在线全文阅读。
相关推荐: