Question: SQL Assignment 2 You will use the Northwind database for this and all other SQL assignments going forward. 1. List the complete customers table. 2.

 SQL Assignment 2 You will use the Northwind database for this

SQL Assignment 2 You will use the Northwind database for this and all other SQL assignments going forward. 1. List the complete customers table. 2. List all products. Sort by unitprice then by productname. 3. Show the ProductID, ProductName, UnitPrice, UnitsInStock and UnitsOnOrder for all products that have been discontinued with a value greater than or equal to 1. 4. List the Customerld, the Company Name and the first 8 characters in the company name using the customer table. 5. List the Customerld and Freight charges for the customers with the 10 largest freight charges. Sort Freight charges in descending order. 6. List the CustomerID and Company Name for Customers that contain Market in their name. 7. Northwind has finally decided to give all employees an email address. The domain name will be northwind.com. Create a list of employee first and last names and email addresses in the format of first initial. Lastname@northwind.com. (Note the period between first initial and last name) Their ISP requires all email address to be submitted in lowercase. Sort by last name in ascending order. 8. List all customers who live in the following countries: France, Germany, USA or UK. Use the IN Keyword. Sort by Country. 9. List the largest 5 percent of freight charges along with the CustomerID. 10. The employee table Notes column contains a great deal of information concerning each employee including the languages they speak. Northwind needs someone who speaks German to represent the company at a meeting. List the LastName, HomePhone and Notes of any employee with German in the notes 11. List all orders with an order date in July 2014. Use the Between Keyword 12. List all orders with an order date in July 2014. DO NOT use the between Keyword 13. List all orders with no shipped date 14. List the CustomerID from the orders table. List each CustomerID only once. Sort in descending order. 15. List the Customerld, City, Region and Postal Code for all customers. Sort by city, then by customer ID SQL Assignment 2 You will use the Northwind database for this and all other SQL assignments going forward. 1. List the complete customers table. 2. List all products. Sort by unitprice then by productname. 3. Show the ProductID, ProductName, UnitPrice, UnitsInStock and UnitsOnOrder for all products that have been discontinued with a value greater than or equal to 1. 4. List the Customerld, the Company Name and the first 8 characters in the company name using the customer table. 5. List the Customerld and Freight charges for the customers with the 10 largest freight charges. Sort Freight charges in descending order. 6. List the CustomerID and Company Name for Customers that contain Market in their name. 7. Northwind has finally decided to give all employees an email address. The domain name will be northwind.com. Create a list of employee first and last names and email addresses in the format of first initial. Lastname@northwind.com. (Note the period between first initial and last name) Their ISP requires all email address to be submitted in lowercase. Sort by last name in ascending order. 8. List all customers who live in the following countries: France, Germany, USA or UK. Use the IN Keyword. Sort by Country. 9. List the largest 5 percent of freight charges along with the CustomerID. 10. The employee table Notes column contains a great deal of information concerning each employee including the languages they speak. Northwind needs someone who speaks German to represent the company at a meeting. List the LastName, HomePhone and Notes of any employee with German in the notes 11. List all orders with an order date in July 2014. Use the Between Keyword 12. List all orders with an order date in July 2014. DO NOT use the between Keyword 13. List all orders with no shipped date 14. List the CustomerID from the orders table. List each CustomerID only once. Sort in descending order. 15. List the Customerld, City, Region and Postal Code for all customers. Sort by city, then by customer ID

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!