6753 Normalization
6753 Normalization
6753 Normalization
Database DBMS
SQL Server
Structured Unstructured
IRCTC Oracle
Web Pages
University My SQL
DBMS (Data Base Management System)
• Data – Data is the raw and unprocessed information about anything.
student name, marks etc are data
• Primary Key- A primary key in database management is a specific candidate key selected to uniquely identify each record
(row) in a table. The primary key ensures that no two records in the table can have the same value for this key, and it
cannot contain NULL values. A table can have only one primary key, though it may consist of a single attribute or a
combination of multiple attributes (composite key).Unique key and not null, it denote from Candidate key. Id is decided by DBA.
• Alternate key- An alternate key in database management is any candidate key that is not selected as the primary
key. Since a table can have multiple candidate keys, only one is chosen as the primary key, and the remaining
candidate keys are referred to as alternate keys. These keys can still uniquely identify records in the table, but they
are not used as the main identifier. The candidate keys other than Pk.
• Composite key –A composite key in database management is a primary or candidate key that consists of two or
more attributes (columns) that, together, uniquely identify a record (row) in a table. None of the individual
attributes can uniquely identify the record by itself; only the combination of these attributes can ensure
uniqueness. Which key is compressed of more than one key. Name + Ph no. , Name + email
• Foreign key- A foreign key in database management is a column or set of columns in one table that
establishes a link between data in two tables. It refers to the primary key or a unique key in another
table, ensuring referential integrity. The foreign key creates a relationship between the two tables,
enforcing that the value in the foreign key column(s) must match a value in the referenced table's
primary key column(s), or it can be NULL if allowed. The referring key which is Pk of another table
1NF (First Normal Form)
• A relation is in 1NF if it contains an atomic value.
2NF (Second Normal Form)
• A relation will be in 2NF if it is in 1NF.
• All non prime attributes are fully functional dependent on the
candidate key (no partial dependency).
• LHS is subset of CK and RHS is non-Prime attribute
Student Id Name Age Sport Id Sport Student Id Name Age Sport Id
1 A 16 101 Football 1 A 16 101
2 B 14 102 Cricket 2 B 14 102
3 C 15 101 Football 3 C 15 101
Sport Id Sport
101 Football
102 Cricket
3NF (Third Normal Form)
• A relation will be in 3NF if it is in 2NF.
• No transition dependency exists (non prime attribute will not
determine by non prime attribute).
• LHS will be SK or RHS will be prime attribute
Student Id Name Marks Exam Name Total Marks Student Id Name marks Exam Id
1 A 16 E_1
1 A 16 Internal 20
2 B 68 E_4
2 B 68 Final 80
3 C 19 E_1
3 C 18 Internal 20
Exam Id Exam Name Total Marks
E_1 Internal 20
E_4 final 80
BCNF (Boyce Code Normal Form)
• A relation will be in BCNF if it is in 3NF.
• In every functional dependency Left-Hand Side (LHS) should be super
key or candidate key of that particular table.
Emp Id Emp Location Dept Designation Dept Id
158 WB CSE Assistant Professor 012
158 WB IT Professor 011
235 Delhi AIML Assistant Professor 014
235 Delhi MCA Associate Professor 015