SQL多表查询原材料productID ProductName

时间:2017-10-25 17:10:13

标签: sql

撰写查询以计算每种成品的原材料总成本。在结果表中,我们希望看到Product_ID,Product_Name及其原材料的总成本。按原始物料的总成本按降序对结果进行排序。

要使用的表:

Product_t: Product_ID,Product_Name,Product_Finish,Unit_Price,On_hand,Product_Description,Product_Line_ID,Work_Center

Raw_materials_t: Material_ID,厚度,尺寸,等级,Material_description,Footage_on_hand,Unit_price

我需要一些帮助,谢谢!

0 个答案:

没有答案