Question: Write an SQL statement to display the WarehouseID, the sum of QuantityOnOrder and sum of QuantityOnHand, grouped by WarehouseID and QuantityOnOrder. Name the sum of
Write an SQL statement to display the WarehouseID, the sum of QuantityOnOrder and sum of QuantityOnHand, grouped by WarehouseID and QuantityOnOrder. Name the sum of QuantityOnOrder as TotalItemsOnOrder and the sum of QuantityOnHand as TotalItemsOnHand. Use only the INVENTORY table in your SQL statement.
Step by Step Solution
3.33 Rating (165 Votes )
There are 3 Steps involved in it
SELECT WarehouseID SUM QuantityOnOrder AS TotalItemsOnOrder QuantityOnHand AS TotalItems OnHa... View full answer
Get step-by-step solutions from verified subject matter experts
