Professional Documents
Culture Documents
Database Management System
Database Management System
Database Management System
SYSTEM
DBMS
CONTENTS
Anomalies in DBMS
Types of Anomalies in DBMS
Functional Dependency
Types of Functional Dependency
Normalization
Problems by redundancy
Types of Normalization
What are the Anomalies in DBMS?
Employee David has two rows in the table given above since
he works in two different departments. If we want to change
David’s address, we must do so in two rows, else the data
would become inconsistent.
If the proper address is updated in one of the departments
but not in another, David will have two different addresses in
the database, which is incorrect and leads to inconsistent
data.
Insert Anomaly
Rollnoname
Rollnoage
Trivial Functional Dependency
More memory
More access time
Data inconsistency
Anomalies
1 A JAVA CS
1 A DATA SCIENCE CS
2 B PYTHON CS
Types of Normalization
Solution:
cid cname cid cthings
1 aaa 1 pen
2 bbb
1 book
2 pen
2 pencil
Normalization second
A relation is said to be in the 2nd Normal Form in DBMS (or 2NF) when it is in the First
Normal Form but has no non-prime attribute functionally dependent on any candidate
key’s proper subset in a relation.
A relation’s non-prime attribute refers to that attribute that isn’t a part of a relation’s
candidate key.
Normalization third
A given relation is said to be in its third normal form when it’s in 2NF but has no
transitive partial dependency. Meaning, when no transitive dependency exists for the
attributes that are non-prime, then the relation can be said to be in 3NF.
BCNF(Boys codd normal form)