Professional Documents
Culture Documents
Date: 8/28/2014
Exercise Instructions
Exercises
1. Write a SELECT statement that returns four columns from
the Shipper table:
ShipperID, ShipperName, ContactName, Phone
Paste exercise 1 answer here:
Select ShipperID, ShipperName, ContactName, Phone
From Shipper
------------------------------------------------
-----------------------------------------------4. Write a SELECT statement that returns six columns from the
InventoryPart table: named PartNumber, PartDescription, EOQ,
ReorderLevel, StockLevel, StockOnOrder
Only return those rows where a reorder needs to be placed
(Stocklevel is less than the ReorderLevel minus the StockOnOrder)
Sort the results by StockLevel with the smallest StockLevel first.
Paste exercise 4 answer here:
Select PartNumber, PartDescription, EOQ, ReorderLevel, StockLevel, StockOnOrder
From InventoryPart
Where Stocklevel < Reorderlevel - StockOnOrder
Order By StockLevel DESC
------------------------------------------------
------------------------------------------------