Professional Documents
Culture Documents
Lesson Lab - Date
Lesson Lab - Date
Questions
1. Found out how many months it has been since the orders have shipped. Use the Orders table.
2. Using the Invoices table, calculate the due date of the invoices by adding 30 days to the Invoice
Date field.
3. Using the Invoices table, format the Invoice Date field as a long date.
4. Display the Order ID field and month of the Order Date field for the records in the Orders table.
5. Find the number of days that passed between the Submitted Date and the Creation Date of
purchase orders. Use the Purchase Orders table.
1.
FROM Orders
2.
FROM Invoices
3.
FROM Invoices
4.
FROM Orders
5.
SELECT [Purchase Order ID], DATEDIFF( 'd', [Submitted Date], [Creation Date]) AS [Days Elapsed]