







































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This lecture is part of lecture series on Information Technology course. This lecture includes: Normalization, Purpose of Normalization, Update Anomalies, Example of Update Anomalies, Normalized Databases, Functional Dependencies, Identifying the Primary Key, Inference Rules, Normal Forms, Definition of 1Nf, Second Normal Form, 3Nf Clientrental Relation, Boyce-Codd Normal Form, Denormalization
Typology: Slides
1 / 47
This page cannot be seen from the preview
Don't miss anything!
-^ The
-^ Data
-^ Why
-^ Functional
-^ The
-^ First
-^ Second
-^ Third
-^ In^
-^ Normalization
-^ Data
-^ The
-^ Normal
-^ A^ non
-^ A^ non
-^ A^ non
Example
of^ Update
Anomalies
To^ insert
a^ new
staff^ with^ branchNo
into^ the
StaffBranch
relation;To^ delete
a^ tuple
that^ represents
the^ last
member
of^ staff
located
at^ a^ branch
To^ change
the^ address
of^ branch
staffNo
sName
position
salary
branchNo
bAddress
SL^
John White
Manager
30000
B
22 Deer Rd, London
SG^
Ann Beech
Assistant
12000
B
163 Main St,Glasgow
SG^
David Ford
Supervisor
18000
B
163 Main St,Glasgow
SA^
Mary Howe
Assistant
9000
B
16 Argyll St, Aberdeen
SG^
Susan Brand
Manager
24000
B
163 Main St,Glasgow
SL^
Julie Lee
Assistant
9000
B
22 Deer Rd, London
StaffBranch Figure 1 StraffBranch relation
Example
of^ Update
Anomalies
(2)
staffNo
sName
position
salary
branceNo
SL^
John White
Manager
30000
B
SG^
Ann Beech
Assistant
12000
B
SG^
David Ford
Supervisor
18000
B
SA^
Mary Howe
Assistant
9000
B
SG^
Susan Brand
Manager
24000
B
SL^
Julie Lee
Assistant
9000
B
branceNo
bAddress B^
22 Deer Rd, London B^
16 Argyll St, Aberdeen B^
163 Main St,Glasgow Staff Branch^ Figure 2 Straff and Branch relations
-^ Redundancy
-^ Normalization
-^ One
-^ It^ is
-^ The
Trival functional
dependency
means
that^ the
right‐
hand
side^ is
a^ subset
(^ not^
necessarily
a^ proper
subset)
of^ the
left‐
hand^
side.
Functional
Dependencies
For^ example:
(See^ Figure
staffNo,
sName
^ sName staffNo,
sName
^ staffNo
They^ do
not^ provide
any^ additional
information
about^
possible
integrity
constraints
on^ the
values
held^ by
these^ attributes.
We^ are
normally
more^ interested
in^ nontrivial
dependencies
because
they
represent
integrity
constraints
for^ the
relation
.
Functional
Dependencies
Main^
characteristics
of^ functional
dependencies
in^ normalization
-^ Have
a^ one
‐to‐one
relationship
between
attribute(s)
on^ the
left‐
and^ right
‐^ hand
side^ of
a^ dependency;
-^ hold
for^ all
time;
-^ are
nontrivial.
Functional
Dependencies
Inference Rules A^ set^ of^ all^ functional
dependencies
that^ are
implied
by^ a
givenset^ of
functional
dependencies
X^ is^ called
closure
of^ X,^
written
+^ X.^ A^ set
of^ inference
rule^ is
needed
to^ compute
+^ X from
Armstrong’s
axioms
1.^ Relfexivity:
If^ B^ is^
a^ subset
of^ A,^
them^
2.^ Augmentation:
If^ A
then^ A,
3.^ Transitivity:
If^ A^
B^ and
then^
4.^ Self
‐determination:
5.^ Decomposition:
If^ A
then
B^ and
6.^ Union:
If^ A^
B^ and
then^
7.^ Composition:
If
B^ and
then^
Functional
Dependencies
A^ set^ of^ functional
dependencies
X^ is^ minimal
if^ it^ satisfies
the^ following
condition:
-^ Every
dependency
in^ X^ has
a^ single
attribute
on^ its
right‐hand
side
-^ We
cannot
replace
any^ dependency
in^ X^ with
dependency
where
C^ is^ a
proper
subset
of^ A,^
and
still^ have
a^ set^
of^ dependencies
that^ is
equivalent
to^ X.
-^ We
cannot
remove
any^ dependency
from^
X^ and
still
have^ a
set^ of
dependencies
that^ is
equivalent
to^ X.