Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

IDS 200

Spring 2023

Assignment 5

Due Friday, 04/14/2023, 11:59pm

45 points

Instructions

Deadline

In order to receive full credit, this assignment must be submitted by Friday, April 14th at 11:59pm. Submitting your assignment early is recommended. Late submissions will be accepted (but penalized 15 pts) up to one week after the submission deadline. After that, assignments will not be accepted.

Assignment

You must import data into the provided Access Database, run a provided query, export the query results to Excel, and then perform the requested analysis/graphing in Excel.

Two starting files are provided:

1. HW5.Customer.Sales – starting Access DB.

2. HW5.product.import – Excel file containing information to be imported into Access.

The database file (HW5.Customer.Sales) tracks customers, orders, and products. The database has 4 tables – Customer, Product, Order, and Orderline with the following relationships already established:

· A customer can have multiple orders, but an order can only have one customer.

· An order can have multiple orderlines, but an orderline can only have one order.

· An orderline has only one product, but a product can be on multiple orderlines.

1. The database user wishes to add an additional set of products into the database. The list of products is contained in a provided Excel Spreadsheet (HW5.product.import). Import the list of new products into the existing Product Table in Access.

2. Run the provided query “SalesPerCity” in the Access DB.  Export the results to an Excel file named “SalesPerCity”.  Make sure you check “Export data with formatting and layout”.

3. In the Excel file “SalesPerCity”, add a pie chart to the spreadsheet that shows the sales amount ($) per city.  The chart can be inserted on the same worksheet as the data. (pie charts can be found in the same area of Excel as the line chart we did in Lab 9).

4. In the same Excel file “SalesPerCity, add a bar chart that shows the OrderCount per City.  The chart can be inserted on the same worksheet as the data (bar charts can be found in the same area of Excel as the line chart we did in lab exercise 9).

5. The database user is trying to analyze the sales of three specific products.  A query (provided) has been written to generate sales data on those three products.  Run the provided query “SpecificProductSales” in the Access DB and export the results to an Excel file named “SpecifcProductSales”.  Make sure you check “Export data with formatting and layout”.

6. In the Excel file “SpecificProductSales”, create a combined pivot table/pivot chart in a new worksheet that shows Product Sales in the Values field, Product name and Order Date in the Axis field, and City in the Column field.  Position the chart in a legible way on the worksheet.

For 10 points of extra credit, write a query titled CityAnalysis that extracts the correct data and then export this data into a new Excel file (named "CityAnalysis") for further processing in order to complete the following two tasks:

1. Answer the following questions: Which city generated the most sales for the company in 2019?  Which city generated the most profit (sales minus cost) for the company in 2019?

2. Create a bar chart that shows the sales for each city in 2019.  Create a pie chart that shows the profit generated by each city in 2019.

Submit all completed files to Blackboard.

1. HW5.Customer.Sales – Access database after import (Note: if you complete the Extra Credit problem the database should also have the CityAnalysis query)

2. SalesPerCity – Excel file after export and adding the charts.

3. SpecificProductSales – Excel file after export and adding pivot Chart.

4. If you completed the extra credit tasks, also submit the CityAnalysis Excel file that contains the data you transferred from Access and clearly shows the answers to the questions in Item 1 above as well as the bar chart and pie chart described in Item 2.

Make sure you attach all files to your submission before you click the submit button on Blackboard.