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. Show Warehouse ID only for warehouses having fewer than 2 SKUs in their TotalItemsOnHandLT3. Display the results in descending order of TotalItemsOnHandLT3.
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
For Microsoft SQL Server Oracle Database and MySQL For Microso... View full answer
Get step-by-step solutions from verified subject matter experts
