dbo.RB_WareHouse wh WITH (nolock)
LEFT JOIN RB_OrderSource os WITH (NOLOCK) ON wh.AutonomousWareHouseID=os.ID AND wh.CustomerID=os.CustomerID
LEFT JOIN RB_OrderSource_EbayAmazonAPI osa WITH (NOLOCK) ON osa.OrderSourceID=os.ID AND osa.CustomerID=os.CustomerID
LEFT JOIN RB_Inventory_WareHouse iwh WITH (NOLOCK) ON iwh.CustomerID=osa.CustomerID AND iwh.DevIDSellerId=osa.DevIDSellerId AND iwh.CustomerID = osa.CustomerID
where wh.CustomerID=6010
字母仓关系sql


