question archive For this assignment, continue to assume the role of data analyst at Adventure Works Cycling Company

For this assignment, continue to assume the role of data analyst at Adventure Works Cycling Company

Subject:SociologyPrice: Bought3

For this assignment, continue to assume the role of data analyst at Adventure Works Cycling Company. As you work to address the business problem surrounding sales of the "LL Road Frame-Black 60," you must continue to refine the data by condensing them into two tables. This requires you to join the table data sets together. While this is an important process, you must be aware of the data integrity issues that can occur as a result of completing joins.

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.

Complete the steps below to practice joins.

  1. Combine MyProduct and MyPriceHistory displaying the fields into a new temporary table called MyProductPriceHistory. Display ProductID, Name, EndDate, and List Price.
  2. Combine MyProduct and MySalesOrderDetail displaying the fields into a new temporary table called MySalesOrderDetailbyName. Display ProductID, Name, SalesOrderID, and Quantity.
  3. Combine MySalesOrderDetailbyName and ALLSalesOrderDates displaying the fields into a new temporary table called MySalesOrderDetailbyDate. Display ProductID, Name, OrderDate, and SumOfQuantity. This will require you using the SUM and GROUP BY statements.

Create a Word document that includes the SQL query code used for each of the joins listed. Additionally, identify and analyze the data integrity issues you encountered in SQL.

  1. Discuss bad queries and bad table data in your analysis.
  2. Explain the impact of the data integrity issues.
  3. Indicate what needs to be revised in the code.
  4. Discuss specifically what needs to be done to fix the data integrity issues created by the join. Please note that as part of your final project for the course you will be adding these new tables to the ERD you created in Topic 5.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE