Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Recall Normal Forms - Database Design - Lecture Slides, Slides of Database Management Systems (DBMS)

This lecture slide is very easy to understand and very helpful to built a concept about the foundation of computers and Database Design.The key points in these slides are: Recall Normal Forms, Multivalued Dependencies, Functional Dependencies, Join Dependencies, Cartesian Product of Relations, Problems with Relation Stars, Equality-Generating Dependencies, Tuple-Generating Dependencies

Typology: Slides

2012/2013

Uploaded on 04/27/2013

asavari
asavari 🇮🇳

4.7

(14)

94 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Multivalued Dependencies
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Recall Normal Forms - Database Design - Lecture Slides and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Multivalued Dependencies

Normal Forms

1NF 2NF^ 3NF BCNF^ 4NF 5NF

Functional dependencies Multivalued dependencies Join dependencies

Normal Form of R (A,B,C,D,E)

1NF : no multivalues

2NF : no FDs where a subset of the key to the relation

is on the left

3NF : no non-trivial FDs, either the determinant is a

superkey or the RHS of the FD is a member of

some key

BCNF : the determinant of any non-trivial FD is a superkey

for the relation

Normal Form (cont)

Name AddrStreet AddrCity FilmName FilmYear

C. Fisher 123 Maple Dr. Hollywood Star Wars 1977

C. Fisher 5 Locust Ln. Malibu Star Wars 1977

C. Fisher 123 Maple Dr. Hollywood The Empire Strikes Back

1980

C. Fisher 5 Locust Ln. Malibu The Empire Strikes Back

1980

C. Fisher 123 Maple Dr. Hollywood Return of the Jedi 1983

C. Fisher 5 Locust Ln. Malibu Return of the Jedi 1983

Stars

Problems with relation Stars

  • No reason to associate address with one movie and not

another

  • When we repeat address and movie facts in all combinations,

there is obvious redundancy

  • Relation R contains unnecessary duplication of data

The relation Stars doesn’t seem to be sufficiently normalized

Reasons:

Introducing MVD

Definitions:

  • A MVD: A1A2…An  B1B2…Bn for a Relation R is “non- trival” if 1. none of the Bs are among the As 2. not all of the attributes of R are among the As and Bs
  • A MVD is “trivial” if A1A2…An  B1B2…Bm where B1B2…Bm is a subset of A1A2…An or ( A1A2…An U B1B2…Bn ) contains all attributes of R
  • A relation cannot be decomposed any further (under 4NF rules) if it has a trivial MVD
  • Intuitively, A1A2…An →→ B1B2…Bm says that the relationship between A1A2…An and B1B2…Bm is independent of the relationship between A1A2…An and R -{B1B2…Bm} - MVD's uncover situations where independent facts related to a certain object are being squished together in one relation
  • Functional dependencies rule out certain tuples from being in a relation - if AB, then we can’t have two tuples with the same A **values but different B
  • a.k.a.** equality-generating dependencies

Multivalued dependencies require that other tuples of a certain form be present in the relation

- a.k.a. tuple-generating dependencies

More on MVD

MVD

Example: is A  C

A B C D

A C B D

r

r

r

r

r

r

r

t1=r t2=r t3=r t4=r

t1=r t2=r t3=r t4=r

2 4 1 1 2 2 1 2 2 4 1 2 2 2 1 1

t1=r t2=r t3=r t4=r

TRANSITIVITY

If X  Y and Y  Z then X  (Z-Y)

REFLEXIVITY

if A is a set of attributes and AB , then AB holds.

REPLICATION

if AB holds, then A  B.

Theories of MVD (cont)