This document describes a lab activity for a data analysis course involving SQL queries and reports using the AdventureWorks database. Students are asked to:
1) Create an SQL query to retrieve cost adjustment data from the ProductCostHistory table and paste the results.
2) Generate a report on cost adjustment data and paste it.
3) Create a chart on cost adjustment data and paste it.
4) Interpret the results of the report and chart in a paragraph, answering questions about the adequacy of the data, what could be lacking, meaningful deductions that can be made, and other data that could be considered.
2. .
Lab 6 Student Answers.docxPage 1 of 1
The AdventureWorks database contains many tables; we will be
using only some of those tables in the course. Below is an ER
diagram showing the tables in the AdventureWorks database
that we will be using. NOTE: Not all the relationship lines are
drawn between the tables in this diagram. To find relationships
between tables you may have to look for matching field names.
Product (Production)
ProductID
Name
ProductNumber
MakeFlag
FinishedGoodsFlag
Color
SafetyStockLevel
ReorderPoint
StandardCost
ListPrice
Size
SizeUnitMeasureCode
WeightUnitMeasureCode
Weight
DaysToManufacture
ProductLine
Class
Style
ProductSubcategoryID
ProductModelID
SellStartDate
SellEndDate
DiscontinuedDate
rowguid
6. Gender
HireDate
SalariedFlag
VacationHours
SickLeaveHours
CurrentFlag
rowguid
ModifiedDate
BIS-345: Data Analysis for Business
Lab 6: Creating Reports with Parameters and Charts
Overview
Using the AdventureWorks database, you have been requested
to create two reports. The first report will use report
parameters; the second report will be based on a chart.
The AdventureWorks database contains many tables; we will be
using only some of those tables in this course. Below is an ER
diagram showing the tables in the AdventureWorks database
that we will be using. NOTE: Not all the relationship lines are
drawn between the tables in this diagram. To find relationships
between tables, you may have to look for matching field names:
Use the Citrix Server, start SQL Server Business Intelligence
Development Studio and create a new Report Server project.
Refer to Week 4 Part 2 Lab on Simple Reports.docx to review
creating a new Report Server project. Be sure to use your last
name and the lab number as part of the name for the new
project.
Part 1: Report with Parameters
Products go through cost adjustments, and each change in cost
is detailed in the ProductCostHistory table. You have been
asked to produce a report detailing these product cost changes
along with the start date of each change. The report will display
the product name and number. Rather than display the full list
of products, the user will select the category and subcategory of
7. products to display. This report will utilize parameters.
Here is an example of the finished report:
We will not be using the wizard to create this report. Only one
data source is needed for the project, and it will be a shared
data source used by both reports.
Step 1: Create a shared data source
Right-click the Shared Data Source folder in the
Solution
Explorer and select Add New Data Source. Follow the
directions in Part 1: Step 1 detailed in “Week 5 Lab on Reports
with Drilldown” if you need to review creating a shared data
source. Give your data source the same name as your project.
Step 2: Create a new report
Right-click the Reports folder in the