Question: Write an SQL statement to display the WarehouseID and the sum of QuantityOnHand, grouped by WarehouseID. Omit all SKU items that have 3 or more
Write an SQL statement to display the WarehouseID and the sum of QuantityOnHand, grouped by WarehouseID. Omit all SKU items that have 3 or more items on hand from the sum, and name the sum TotalItemsOnHandLT3 and display the results in descending order of TotalItemsOnHandLT3.
Step by Step Solution
3.27 Rating (153 Votes )
There are 3 Steps involved in it
For Microsoft SQL Server Oracle Database and MySQL For Microsoft ... View full answer
Get step-by-step solutions from verified subject matter experts
