Top Banner
Announcements No class on Thursday Time to get together with your group and work on the project Office Hours this week: Today: 1:00 to 1:30 Wednesday: 10:00 to 11:00 Friday: 1:30 to 2:30
28

Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Dec 18, 2015

Download

Documents

Albert Blake
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Announcements

No class on Thursday• Time to get together with your group and work

on the project Office Hours this week:

• Today: 1:00 to 1:30• Wednesday: 10:00 to 11:00• Friday: 1:30 to 2:30

Page 2: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Practice ExerciseNormalize Payment Voucher

Payment Voucher

Page 3: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 4: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Payment Voucher

First Normal Form• Select and define data elements of interest• Eliminate repeating groups• Identify primary key• Business Process Assumptions

Page 5: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 6: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Primary Key?

One from non-repeating section• PV-Num

One from each repeating section• ProdCode• RRNum

Page 7: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Second Normal Form

Is the FNF table in Second Normal Form?• Why or why not?

If not, what are the functional dependencies? What business process assumptions did you

make?

Page 8: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Second Normal Form

Required since concatenated primary key• Seven combinations

– PVNum ProdCode RRNum– PVNum + ProdCode– PVNum + RRNum– RRNum + ProdCode– PVNum + ProdCode + RRNum

Page 9: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 10: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Functional Dependencies

Page 11: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Corresponding Documents Table

Is this table in second normal form?

Page 12: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Third Normal Form

Are the SNF tables in Third Normal Form?• Why or why not?

If not, what are the transitive dependencies? What business process assumptions did you

make?

Page 13: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

SNF Tables

Page 14: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Third Normal Form

Transitive dependencies?• Supplier Information

– PVNum identifies Supplier Name– Supplier Name identifies Supplier Shipping Address,

CSZ?

Page 15: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

PV Normalized Schema

Page 16: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 17: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Common Tables?

ZipCityState (all 3) Product (all 3) Supplier Shipping Location (PO & RR) Supplier Sales Office (PO & PV) Receiving Report Detail (RR & PV)

Page 18: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Database Schema for Purchasing Cycle

These are the tables and relationships used to generate the Purchase Order, Receiving Report, and Payment Voucher

Page 19: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Assignment Design Third Normal Form Datadase for Order

Fulfillment of CRC • You must be able to create these reports from data

within the tables. – Sales Order Confirmation– Bill of Lading– Backorder Notice

• Focus on the data, not the process– Do not worry about what triggers the Backorder Notice,

just be able to create the report from the underlying tables

Page 20: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 21: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 22: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 23: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Assignment Once you have designed the tables:

Use Access to document the relationships between the tables and as your data dictionary Create empty tables in Access Enter the abbreviated field names, specify the data

type and size, enter the long name as the caption Set the primary key fields

Page 24: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 25: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:
Page 26: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Assignment Use the “relationships” feature in Access to

define the relationships between tables Always set to enforce referential integrity

Page 27: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Assignment Provide a description of the processes that

you used to design the third normal form tables. Specifically: You must justify your selection of fields for the

primary keys You must describe how you know that each table

is in third normal form. Provide all assumptions you had to make

regarding the nature of the business operations to support the placement of the various data elements within the tables.

Page 28: Announcements n No class on Thursday Time to get together with your group and work on the project n Office Hours this week: Today: 1:00 to 1:30 Wednesday:

Review

What is normalization and why is it important to normalize a database?

Distinguish between First, Second and Third normal forms.

What are the characteristics of a “primary key”? 

What does it mean when there is a “one to many” relationship?

What is a "foreign key"?