2023 For each order display the Company Name City and the Country for the customer who placed the order Include the Order | Assignment Collections

Computer Science 2023 10 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:

2023 For each order display the Company Name City and the Country for the customer who placed the order Include the Order | Assignment Collections

  • For each order, display the Company Name, City, and the Country for the customer who placed the order.

 

  • Include the Order Date and the Required Date. Order the results by Company Name in ascending order.

 

  • 830 rows returned.

 

  • For each order, list the OrderID, Orderdate, Product Name, UnitPrice, Quantity Ordered, and Total Cost. Label the column ‘Product Cost.’

 

  • For each product (including the discount), only show those orders that were placed in March of 1997.

 

  • Sort the data by the OrderID, then the Product Name.

 

  • 77 rows returned.

 

  • For each order, display the OrderID, ShipName, and the Employee First and Last Name.

 

  • Order the results by Employee Last Name in descending order, then by Employee First Name in ascending Order, then by OrderID in ascending order.

 

  • 830 rows returned.

 

  • Modify the first query to list the orders with customer details, but include all customers even if they have not placed an order.

 

  • 832 rows returned.

 

  • List all customers (include CustomerId and Company Name) who have placed less than 5 orders.

 

  • Include those customers who have placed 0 orders. Name the count field “OrderCount.”

 

  • Order by number of placed orders in reverse order.

 

  • 18 rows returned.

 

  • Display the ProductName, and UnitPrice of all products that have a unit price larger than Tarte au Sucre.

 

  • Order the results by UnitPrice in descending order.

 

  • 7 rows returned.

 

  • Display the Customer Name of all customers who have placed orders in 1996.

 

  • Order the results by Company Name in ascending order.

 

  • 67 rows returned.

 

  • Display the OrderID of all orders that where placed after all orders placed by Bottom-Dollar Markets.

 

  • Order the result by OrderID in ascending order.

 

  • 28 rows returned.

 

  • 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.

 

  • Order the results by Company Name.

 

  • 10 rows returned.

 

  • Display the Product Names of all products that were placed by customers in CA.

 

  • Order the result by Product Name in ascending order.

 

  • Eliminate duplicate rows in the results.

 

  • 10 Rows Returned.

 

 

 

 

 

 

 

 

 
 
Loading…
 
 
Loading…
 
 
 
Loading…
 
 
Loading…
[removed]
[removed]

[removed]

 
 
 
 
 
 
 
 

 

Informationclose
The following student(s) doesn’t have advisors.
     
    Unit3 – Individual Projectclose
     

    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.
      • Include the Order Date and the Required Date. Order the results by Company Name in ascending order.
      • 830 rows returned.
    2. For each order, list the OrderID, Orderdate, Product Name, UnitPrice, Quantity Ordered, and Total Cost. Label the column ‘Product Cost.’
      • For each product (including the discount), only show those orders that were placed in March of 1997.
      • Sort the data by the OrderID, then the Product Name.
      • 77 rows returned.
    3. For each order, display the OrderID, ShipName, and the Employee First and Last Name.
      • Order the results by Employee Last Name in descending order, then by Employee First Name in ascending Order, then by OrderID in ascending order.
      • 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.
      • 832 rows returned.
    5. List all customers (include CustomerId and Company Name) who have placed less than 5 orders.
      • Include those customers who have placed 0 orders. Name the count field “OrderCount.”
      • Order by number of placed orders in reverse order.
      • 18 rows returned.
    6. Display the ProductName, and UnitPrice of all products that have a unit price larger than Tarte au Sucre.
      • Order the results by UnitPrice in descending order.
      • 7 rows returned.
    7. Display the Customer Name of all customers who have placed orders in 1996.
      • Order the results by Company Name in ascending order.
      • 67 rows returned.
    8. Display the OrderID of all orders that where placed after all orders placed by Bottom-Dollar Markets.
      • Order the result by OrderID in ascending order.
      • 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.
      • Order the results by Company Name.
      • 10 rows returned.
    10. Display the Product Names of all products that were placed by customers in CA.
      • Order the result by Product Name in ascending order.
      • Eliminate duplicate rows in the results.
      • 10 Rows Returned

     

     

    We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

    Place Order Now

    #write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational