?
2013-01-24 00:17:18 UTC
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 WarehouseId only for warehouses having fewer than 2 SKUs in their TotalItemsOnHandLT3 and display the results in descending order of TotalItemsOnHandLT3