BCIS 4660 Homework #7 Hints Exercise #7 [GROUP PROJECT] Spring 2016

advertisement
Class 10.02
BCIS 4660
Homework #7 Hints
Spring 2016
© 2015, Prentice-Hall
1
Exercise #7 [GROUP PROJECT]
Due: Sec1 & Sec 2: April 7 (Thurs)
Points: 40 points; 10 Bonus Points
Pratt & Last: TAL Distributors Star Diagram
Assignments must have cover sheet, table of contents, index tabs. Use 3-hole punch notebook (1/2”or
smaller). Put your Team Name (ID#) on the spine of the notebook.
ACCESS is REQUIRED for this assignment.
Revise the Database Design for TAL Distributors:
•
TAB 1: Revise your Design for the Data Warehouse using a Star-type diagram (note: may need
more than one “star”). Be sure to include a meaningful Time dimension table.
–
–
–
–
–
Create a NEW Access database .mdb file [TALDW07_TeamS.XX.accdb; Note: S=1 or 2; XX = 01, 02, etc.]
Turn in ACCESS ERD of revised Star Diagram with data loaded [Tab 2 below]
Load Original TAL Distributors data into your Star Diagram. Make sure all field types agree with original
case specifications. This is critical.
Make sure all date types in the OrderDetail Fact Table are the same as in the original TPS case.
Use the TIME (2008-2015) table on the Course website.
Relation Listing: On separate page, clearly identify: All relations, i.e., Fact tables, dimension tables, primary
keys, foreign keys, alternate keys, etc. Use relational notation from Pratt & Last. E.g.:
CUSTOMER[CustomerNum, CustomerName, …, RepNum]
–
–
•
Include a Team_State Table
Document Analyzer Report (2 pages, each table)
TAB 2: Generate data for each of the following tables:
–
–
–
–
–
–
Start with and include all FL and CA data from Homework Assignment #6.
For your assigned territory: Create GOOD data for the following tables with at least as many new records as
indicated: Rep (10 records); Customer (40 records); Item (25 records); Orders (80 records: 10 in 2008, 10 in
2009, 10 in 2010; 10 in 2011; 10 in 2012; 10 in 2013; 10 in 2014; and 10 in 2015); ); OrderDetail (Minimum 100
new records: at least one item for every order record)
Make sure that data types agree with TAL Case requirements (some may change due to larger values)
Print Datasheet view for each table (1-page for TIME table).
Turn in .mdb/.accdb file with STAR model by email to instructor: becker@unt.edu
• COMPRESS & ZIP the TALDW07_TeamS.XX.mdb/accdb file before Emailing.
Note: Dates must fall between 1/1/2008 and 12/31/2015. Values within date range of TIME table.
1
Exercise #7 [GROUP PROJECT]
10 POINT BONUS (2 points each report)
•
TAB 3: Generate the following Reports:
– All reports must be neatly formatted, and have a Grand Total on the Last page of the
report. Pages should be numbered and groups should have subtotal lines correctly
labeled (annotated) according to the grouping field(s).
1. Group and subtotal the dollar sum of all orders by Year. Order by Year.
2. Group and subtotal the dollar sum of all orders by Customer. Sort by Customer
name. Order by Customer name.
3. Group and subtotal the dollar sum of all orders by SalesRep Name. Order in
descending order by value of their sales over the time period.
4. Group and subtotal the dollar sum of all orders by ItemNum. Order by ItemNum,
but have the Item Name appear after the ItemNum in the report.
5. Compute the subtotal and total the dollar sum of all Sales by Month over the
FULL time period. 1 line per month. Order by Year and Month Name. Both
should appear on the same line as their respective subtotals. Also, Subtotal by
Year.
HINT: Create the necessary Views (Queries) before using the Report Wizard.
Be sure to include the SQL code used for the Query. Remember “MOV”
© 2015, Prentice-Hall
3
Team # ___________ Day/Eve Score ___ / _50_
4
2
Territory Assignments
Team
State
Territory
ItemNo
RepNo
OrdNo
CustNo
1
WA
NW
GME, C
090
010000
0100
2
OR
NW
GME, D
080
020000
0200
3
AZ
SW
GME, F
070
030000
0300
4
NM
SW
PZL, A
060
040000
0400
5
MO
MW
PZL, B
050
050000
0500
6
FL
SE
TOY, G
040
060000
0600
7
NY
NE
TOY, H
030
070000
0700
8
ME
NE
TOY, I
020
080000
0800
9
OK
SW
PZL, J
010
090000
0900
10
LA
SE
PZL, K
100
100000
1000
Territory Assignments
Team
State
Territory
ItemNo
RepNo
OrdNo
CustNo
11
NE
MW
GME, L
110
110000
1100
12
ID
NW
GME, M
200
120000
1200
13
NV
SW
GME, N
190
130000
1300
14
TX
SW
PZL, P
180
140000
1400
15
KS
MW
PZL, R
170
150000
1500
16
AL
SE
TOY, S
160
160000
1600
17
NJ
NE
TOY, T
150
170000
1700
18
MA
NE
TOY, U
140
180000
1800
19
CO
SW
PZL, V
130
190000
1900
20
CA
SW
PZL, W
120
200000
2000
3
MS Project GANTT Chart
(Prepare for Final Project)
• Serial Activities?
– Some tasks MUST be done serially
• Parallel Activities?
– Increases human productivity
– One of most common ways of increasing IT capabilities – Nfold!; e.g.,
• Hard drives; Printers
• Data Entry devices
TAL Distributors Star Diagram
Time2008-2015
4
OrderDetail Table Keys
Set Primary Keys
Create INDEXes
© 2015, Prentice-Hall
Query 1: Subtotal Sales by Year
Query 1: QBE
Query 1: Report
Query 1: SQL
© 2015, Prentice-Hall
10
5
Report Design View
HINT: Copy bound control field “Extended Price” from Detail
Area to Report Footer area. Edit the control so that it appears as:
=Sum([ExtendedPrice])
Adjust Properties as needed.
Parentheses and brackets are required! Add a Label box: “Total for Period”
© 2015, Prentice-Hall
11
:Database Tools/Database
Documenter
• Select Tables ONLY (Print first 4 pages ONLY)
• Table Analyzer Documenter
© 2015, Prentice-Hall
12
6
Sample Customer Data
• Customer Data: 40 New Records like “FL data”
• Data MUST conform to your region & State:
– E.g.: Team #1: NW; WA (Washington State),
CustNo: 0100 - 0199
– All addresses must be in State of Washington (WA)
– RepNum: Must conform to 090 - 099
13
Entering Data: Use the
Correct Data Structure
Copy Customer Table
Data Structure ONLY
Then Input New Data with
Correct Data Structure
CustomerTemp
7
Rep Table
•
•
•
•
•
Team #1: RepNum: 040 - 049
Addresses must conform to Washington State
Rates & Commissions consistent with FL data:
E.g., Rates: 0.05 – 0.10
Commissions: $0.00 - $99,999.99
© 2015, Prentice-Hall
15
Item Table
• Team #1: ItemNo: GME, C; where …
GME=Games; PZL = Puzzles; TOY = Toys
• ItemNo: Starts with C: Conforms to: Cxxx
• Warehouse: 1, 2, or 3
• Prices consistent with actual prices for items
OnHand Amounts; must be integer.
16
8
Orders Data
• Team #1: 80 orders; OrderNum: 010000+
• Dates: 10 orders per year: 2008 – 2015
• CustomerNum conforms to 0100+; RepNum
conforms to 090+ and to Customer Table
17
OrderLine  OrderDetail
• 100 Orders and at least 10 for each year in
TIME table. In other words at least 20 orders
MUST have 2 or more items per order
• E.g., Team #1: 010000 – 019999 (e.g., order
numbers)
• ItemNum type: GME, Cxxx
© 2015, Prentice-Hall
18
9
OrderDetail
• Do this one LAST!
• Team #1: All Foreign keys must conform to their
respective tables:
• ItemNum; OrderDate; TimeKey; CustomerNum;
RepNum; NumOrder & QuotedPrice;
ExtendedPrice (computed); TeamID (add)
© 2013, Prentice-Hall
19
Sample Scoring Rubric
20
10
Download