Posted: November 8th, 2022

SQL

The purpose of this assignment is to update a previous query and present it in an easily readable format.

Don't use plagiarized sources. Get Your Custom Essay on
SQL
Just from $13/Page
Order Essay

For this assignment, continue to assume the role of data analyst at Adventure Works Cycles company.

Please note that when SQL queries are run, results are generated in the form of data. This data should be exported and saved to Excel for a visual check of accuracy.

Create a Microsoft Word document that includes the SQL query code used to explore the database tables and answer the following questions.

Part 1:

  1. Using what you have learned, replicate the data found in #MySalesOrderDetailbyDate and #MyProductPriceHistory using a single SELECT statement for each query. Refer to the Topic 5 assignment, “Creating an Entity Relationship Diagram (ERD)” for this information.
  2. Modify the <MyProductPriceHistory and #MySalesOrderDetailbyDate> queries completed in the Topic 6 assignment and present it in an easy-to-read format. To do this, write the query in a single SELECT statement without temporary tables, using abbreviations and line spacing.

Part 2:

Karen Berge, a document control assistant at the company, comes to you with a request. Karen wants the titles and file names of all of the documents she has produced and has asked you to generate this information for her. Using what you have learned, produce a query in one statement to give her the information she needs. Note that constructing the query will require some thinking outside the box since the relationships are not well-documented.

Please note that when SQL queries are run, results are generated in the form of data. This data should be exported and saved to Excel for a visual check of accuracy. This Excel file should include the names of all documents Karen has produced.

Add to the Word document you created in Part 1 and include the SQL query code associated with the query you wrote to locate Karen’s documents.

Compile the Excel data file and Word document containing the SQL queries and answers to the questions into a .zip file and submit to your instructor.

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00

Order your essay today and save 20% with the discount code ESSAYHELP