错误出现在“whs.description”列上。它不会在加入 'ExactOnlineREST.Inventory.Warehouses Whs on Whs.ID=SHO.Warehouse' 时给出任何错误
select Pro.code
, ShopOrderNumber
, SHO.status
, SHO.Description
, ItemVersionDescription
, BOM.CalculatedCostprice
, SHO.PlannedDate
, Whs.description
from ExactOnlineRest.manufacturing.ShopOrders SHO
join ExactOnlineREST.Project.Projects Pro on SHO.PROJECT=Pro.ID
join ExactOnlineXML.XML.ManufacturedBillOfMaterials BOM on "{" + SHO.ItemVersion + "}"= BOM.ID_attr
join ExactOnlineREST.Inventory.Warehouses Whs on Whs.ID=SHO.Warehouse
Group
by Pro.code
, ShopOrderNumber
, SHO.status
, BOM.CalculatedCostprice
order
By Pro.code
, ShopOrderNumber
, SHO.status
, BOM.CalculatedCostprice