{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lab 9 - Lab 09 Answer Key 1 Report the company name contact...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 09 Answer Key 1. Report the company name, contact name, and title of all customers with the title of owner. SELECT companyname, contactname, contacttitle FROM customers WHERE contacttitle='owner'; 2. Report the company, city, and region of all suppliers sorted by country and sorted within country by city. SELECT CompanyName, City, Region FROM suppliers ORDER BY country, city; 3. Report all the fields on the employee with EmployeeID 5. SELECT * FROM employees WHERE employeeid=5; 4. Report the order ID, customer ID, and order date of all orders placed on April 29, 2003. Hint: OrderDate holds the date the order was placed. SELECT OrderID, CustomerID, OrderDate FROM orders WHERE orderdate=#04/29/2003#; 5. Report the order ID, shipped date, and ship name of all orders shipped to Save-a-lot Markets. Sort them by shipped date with the most recent dates first. SELECT OrderID, ShippedDate, ShipName FROM orders WHERE shipname='save-a-lot markets' ORDER BY shippeddate DESC;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

Lab 9 - Lab 09 Answer Key 1 Report the company name contact...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online