Note: In case if your problem statement is updated, please donot hesitate us and send it to us at [email protected]. We would surely like to help you in this regard.
ITCO331 Unit 3 IP
10 SQL statements
Details: Write SQL statements that will retrieve the following data from a database, using Subqueries and Joins. Using the Northwind database, write a SQL SELECT statement that will retrieve the data for the following questions:
1. For each order, display the Company Name, City, and the Country for the customer who placed the order.
o Include the Order Date and the Required Date. Order the results by Company Name in ascending order.
o 830 rows returned.
2. For each order, list the OrderID, Orderdate, Product Name, UnitPrice, Quantity Ordered, and Total Cost. Label the column ‘Product Cost.’
o For each product (including the discount), only show those orders that were placed in March of 1997.
o Sort the data by the OrderID, then the Product Name.
o 77 rows returned.
3. For each order, display the OrderID, ShipName, and the Employee First and Last Name.
o Order the results by Employee Last Name in descending order, then by Employee First Name in ascending Order, then by OrderID in ascending order.
o 830 rows returned.
4. Modify the first query to list the orders with customer details, but include all customers even if they have not placed an order.
o 832 rows returned.
5. List all customers (include CustomerId and Company Name) who have placed less than 5 orders.
o Include those customers who have placed 0 orders. Name the count field “OrderCount.”
o Order by number of placed orders in reverse order.
o 18 rows returned.
6. Display the ProductName, and UnitPrice of all products that have a unit price larger than Tarte au Sucre.
o Order the results by UnitPrice in descending order.
o 7 rows returned.
7. Display the Customer Name of all customers who have placed orders in 1996.
o Order the results by Company Name in ascending order.
o 67 rows returned.
8. Display the OrderID of all orders that where placed after all orders placed by Bottom-Dollar Markets.
o Order the result by OrderID in ascending order.
o 28 rows returned.
9. List the Company Name of all U.S.-based customers who are NOT located in the same state (or region) as any of the employees.
o Order the results by Company Name.
o 10 rows returned.
10. Display the Product Names of all products that were placed by customers in CA.
o Order the result by Product Name in ascending order.
o Eliminate duplicate rows in the results.
o 10 Rows Returned.
Objective: • Create advanced queries to meet organizational requirements
* If you have any issues with the payment method, please let us know at [email protected] and that can be discussed and considered.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received through PayPal, download link of the solution will automatically be sent to the address used in Paypal.
* Please check your junk mails as the download link email might go there.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please expect to get a response within 8 hours from our side.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
******************************************** Good Luck ***************************************************
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.
Note: In case if your problem statement is updated, please donot hesitate us and send it to us at [email protected]. We would surely like to help you in this regard.