ADVANCE DATABASE NORMALIZATION Flashcards
is a database design technique that organizes tables in a manner that reduces redundancy and dependency of
data.
NORMALIZATION
- The purpose of Normalization is to eliminate ____
___ and ensure data is stored logically.
redundant (useless) data
The inventor of the relational model ____ proposed the
theory of normalization
Edgar Frank Codd
is the process of organizing data to
minimize redundancy in the design
of a relational database
management system (RDBMS)
Database
Normalization or Normalization
This rule is all about disallowing multivalued attributes
Eliminate repeating
data
Goals of Normalization
- ELIMINATE REDUNDANT
DATA - ELIMINATE INSERT, DELETE,
AND UPDATE ANOMALIES
Three main rules for normalizing data
Eliminate repeating
data
Eliminate partial
dependencies
Eliminate transitive
dependencies
This refers to situations where the primary key for a table is a composite
primary key, which means ‘a key composed of multiple columns’.
Eliminate partial
dependencies
This refers to situations where in a column in the table refers to a non-key
column instead of referring to the primary key of a table.
Eliminate transitive
dependencies
Problems that can occur in poorly
planned, unnormalized databases
where all the data is stored in one
table (a flat- file database).
Anomaly
Types of Anomalies:
Insert Delete Update
Suppose a new faculty joins the University, and the Database Administrator inserts the faculty data into the above table. But he is not able to insert because Sid is a primary key, and can’t be NULL. So this type
of anomaly is known as an
insertion anomaly
When the Database Administrator wants to delete the
student details of Sid=2 from the above table, then it will
delete the faculty and course information too which
cannot be recovered further.
Delete Anomaly
DETELE ANOMALY in SQL:
DELETE FROM ___ WHERE __:
When the Database Administrator wants to change
the salary of faculty F1 from 30000 to 40000 in above
table University, then the database will update salary
in more than one row due to data redundancy
Update Anomaly