DOC PREVIEW
SJSU CS 157A - Higher Normal Forms

This preview shows page 1-2-19-20 out of 20 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 20 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Higher Normal FormsWhat I Will Talk AboutMulti-valued Dependency (MVD)MVD v. FDMVD v. FD (cont)Slide 6How To Test for MVDHow To Test for MVD (cont)Slide 9Slide 10Slide 11Armstrong's Axioms for MVDQuick Review of Normal FormsFourth Normal Form (4NF)4NF Example4NF Example (cont)Slide 17Slide 18Slide 19RefrencesHigher Normal FormsBy John NicosiaCS 157a Fall 2007What I Will Talk About•Define Multi-valued Dependency (MVD)•MVD v. FD•Armstrong's Axioms for MVD•Quick Review of 1NF, 2NF, 3NF, BCNF•Fourth Normal Form (4NF)Multi-valued Dependency (MVD)The multivalued dependency X --> --> Y holds in a relation R if whenever we have two tuples of R that agree in all the attributes of X, then we can swap their Y components and get two new tuples that are also in R.Trivial: If Y is a subset of X or X U Y is all the attributes of R.Non-Trivial: If Y is not a subset of X and X U Y is not all the attributes of R.MVD v. FDMVD v. FD (cont)Functional Dependency:1. Every FD is a MVD.2. FDs rule out certain tuples* If X --> Y then we can't have two tuples with the same X values but different Y values.MVD v. FD (cont)Multi-Valued Dependency:1. Not every MVD is a FD.2. MVDs guarantee certain tuples exist.*If Name--> --> PhoneNumHow To Test for MVDHow To Test for MVD (cont)How To Test for MVD (cont)How To Test for MVD (cont)How To Test for MVD (cont)Armstrong's Axioms for MVD•Reflexivity Rule: if , then A -->-->B•Complementation Rule: if A-->-->B, then A -->--> [R - ( )]•Augmentation Rule: if A-->--> B and then (A,D) -->--> (B,C)•Transitivity Rule: if A-->-->B and B-->-->C then A-->-->(C-B)•Replication Rule: if A-->B then A-->--->B•Coalescence Rule: if A-->-->B, (B, D) are disjoint, D--> C, then A-->CA∪ BC ⊂ DB⊂ AC ⊂ BQuick Review of Normal Forms•1NF: All values of the attributes contain no repeating values.•2NF: 1NF and every non-key attribute is fully dependent upon the primary key.•3NF: 2NF and every non-key attribute is functionally dependent only upon the primary key.•BCNF: 3NF and every determinant (an attribute which some other attribute is fully functionally dependent) is a candidate key.Fourth Normal Form (4NF)•Fourth Normal Form (4NF): A relation schema R is in 4NF if there are no non-trivial multi-valued dependencies in R, or the determinant of any non-trivial multi-valued dependency in R is a super key of R. (Informal Definition)4NF ExampleMUSIC_SKILLName Skill MusicGeorge Composer JazzGeorge Composer ClassicalGeorge Composer RockGeorge Critic ClassicalSmith Composer ClassicalSmith Critic RockJen Composer Jazz4NF Example (cont)4NF Example (cont)4NF Example (cont)4NF Example (cont)Refrences•http://en.wikipedia.org/wiki/Fourth_normal_form•“Data Modeling and Database Design” By Narayan S. Umanath and Richard W.


View Full Document

SJSU CS 157A - Higher Normal Forms

Documents in this Course
SQL

SQL

18 pages

Lecture

Lecture

44 pages

Chapter 1

Chapter 1

56 pages

E-R Model

E-R Model

16 pages

Lecture

Lecture

48 pages

SQL

SQL

15 pages

SQL

SQL

26 pages

Lossless

Lossless

26 pages

SQL

SQL

16 pages

Final 3

Final 3

90 pages

Lecture 3

Lecture 3

22 pages

SQL

SQL

25 pages

Load more
Download Higher Normal Forms
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Higher Normal Forms and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Higher Normal Forms 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?