SlideShare a Scribd company logo
Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423 603
(An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune)
NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Computer Engineering
(NBA Accredited)
Prof. Monika Agrawal
Assistant Professor
E-mail : agrawalmonikacomp@sanjivani.org.in
Contact No: 8770361037
Course:CO210
Database Management System
Lecture-04 1NF 2NF
Content
s
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 2
Normalization Rule
First Normal Form
Second Normal Form
Normalization Rule
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 3
Normalization is a process of organizing the data in database to avoid
data redundancy, insertion anomaly, update anomaly & deletion
anomaly.
Normalization is a systematic approach of decomposing tables to
eliminate data redundancy.
Normalization rules are divided into the following normal forms:
First Normal Form
Second Normal Form
Third Normal Form
BCNF
First Normal Form
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 4
1NF
Above table is not in First Normal Form. In 1NF any row must not have a column
in which more than one value is saved like separated with commas.
As per 1NF no two rows of data must contain repeating group of information i.e
each set of column must have a unique value, such that multiple columns can not
be used to fetch the same row.
Each table organized into rows and each row should have a primary key.
Student Age Subject
Ram 15 Biology, Maths
Vinay 14 Maths
Sham 17 Maths
First Normal Form (Cont.)
Before 1NF
After 1NF
Student Age Subject
Ram 15 Biology
Ram 15 Maths
Vinay 14 Maths
Sham 17 Maths
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 5
2NF
• Table must be in 1NF
• As per 2NF there must not be any partial dependency of any column on primary
key or candidate key.
• If any column depends only on one part of concatenated key then the table fails
second normal form.
• In above table the candidate key is {student, subject}. Age depends only on
Student column not on Subject column means, Age column depends on part of
candidate key. It is incorrect as per 2NF.
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 6
2NF (Cont.)
DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 7
• For second normal form split out the subjects in to an independent
table and match them up using the student names as foreign key.
• After 2NF
Student table Subject table
Student Age
Ram 15
Vinay 14
Sham 17
Student Subject
Ram Biology
Ram Maths
Vinay Maths
Sham Maths

More Related Content

DOCX
Normalization
PPTX
NORMALIZATION.pptx
PPT
Normalization PRESENTATION
PPT
Normalization
PDF
Normalization in Database
PPTX
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
PPTX
Normalization presentation in Database Management System
PPTX
Normalization.pptx
Normalization
NORMALIZATION.pptx
Normalization PRESENTATION
Normalization
Normalization in Database
Normalization,1st NF, 2nd NF, 3rd NF, BCNF, 4th NF, 5th NF
Normalization presentation in Database Management System
Normalization.pptx

Similar to First Normal Form, Second Normal Form.pptx (20)

PPTX
Chapter 6 database normalisation
PPSX
Normalization
PDF
1683368767418684.pdf
PPT
Dwh lecture-06-normalization
PPTX
normalization of database management ppt
PPTX
Normalization in Database Management System
PPT
Intro to Data warehousing lecture 03
PPTX
PPTX
DBMS Lecture 8 - Normalization
PDF
Assignment#11
DOCX
Database Normalization.docx
PPT
Normalization
PPTX
Learning of 3NF BCNF Normal Forms in DBMS.pptx
PPT
Normalization
PPTX
normalization-1.pptx
PPTX
normalization In data base lecture no sixth
PDF
What is Database NormalizationExplain the guidelines for ensuring t.pdf
PPTX
Normalization
PPTX
Lecture 6.pptx
PPTX
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
Chapter 6 database normalisation
Normalization
1683368767418684.pdf
Dwh lecture-06-normalization
normalization of database management ppt
Normalization in Database Management System
Intro to Data warehousing lecture 03
DBMS Lecture 8 - Normalization
Assignment#11
Database Normalization.docx
Normalization
Learning of 3NF BCNF Normal Forms in DBMS.pptx
Normalization
normalization-1.pptx
normalization In data base lecture no sixth
What is Database NormalizationExplain the guidelines for ensuring t.pdf
Normalization
Lecture 6.pptx
1-161103092724.pzxsdfdsdrgdrgdfgdfgdfgdfgptx
Ad

More from agrawalmonikacomp (20)

PPT
Introduction to MongoDB CRUD Operations.ppt
PPT
Lecture 2 Difference between NoSQL and SQL.ppt
PPTX
Lecture 1-Introduction of NoSQL in DBMS.pptx
PPT
Lecture 6 Failure Classification in DBMS.ppt
PPT
Lecture 5 Deadlocks in Database Systems.ppt
PPT
Lecture 1-Introduction to Database Transactions.ppt
PPTX
Learning of L2 Codd's Rules 7-12 in DBMS.pptx
PPTX
Learning of Codd's Rules 0-6 in DBMS.pptx
PPTX
Learning of PL-SQL Introduction in DBMS.pptx
PPTX
SQL Indexes Creation and Use in DBMS.pptx
PPTX
SQL Aggregate functions Learning in DBMS.pptx
PPTX
Basic SQL Queries with Clauses Learning.pptx
PPTX
Basic SQL commands and explanation .pptx
PPTX
Data Definition Language Commands in DBMS
PPTX
Introduction to Structured Query Language
PPTX
Weak Entity Sets in Database Management System.pptx
PPTX
Learning Cardinalities and Relationships.pptx
PPTX
Entity Relationship Model in Database Systems
PPTX
DBMS Languages in Database Management System
PPTX
Data Models in Database Management System
Introduction to MongoDB CRUD Operations.ppt
Lecture 2 Difference between NoSQL and SQL.ppt
Lecture 1-Introduction of NoSQL in DBMS.pptx
Lecture 6 Failure Classification in DBMS.ppt
Lecture 5 Deadlocks in Database Systems.ppt
Lecture 1-Introduction to Database Transactions.ppt
Learning of L2 Codd's Rules 7-12 in DBMS.pptx
Learning of Codd's Rules 0-6 in DBMS.pptx
Learning of PL-SQL Introduction in DBMS.pptx
SQL Indexes Creation and Use in DBMS.pptx
SQL Aggregate functions Learning in DBMS.pptx
Basic SQL Queries with Clauses Learning.pptx
Basic SQL commands and explanation .pptx
Data Definition Language Commands in DBMS
Introduction to Structured Query Language
Weak Entity Sets in Database Management System.pptx
Learning Cardinalities and Relationships.pptx
Entity Relationship Model in Database Systems
DBMS Languages in Database Management System
Data Models in Database Management System
Ad

Recently uploaded (20)

PPTX
IMMUNIZATION PROGRAMME pptx
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
PPTX
Odoo 18 Sales_ Managing Quotation Validity
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PPTX
How to Manage Bill Control Policy in Odoo 18
PPTX
Strengthening open access through collaboration: building connections with OP...
PPTX
Presentation on Janskhiya sthirata kosh.
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
PDF
LDMMIA Reiki Yoga S2 L3 Vod Sample Preview
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
PPTX
An introduction to Dialogue writing.pptx
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PDF
Sunset Boulevard Student Revision Booklet
PPTX
vedic maths in python:unleasing ancient wisdom with modern code
IMMUNIZATION PROGRAMME pptx
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
Odoo 18 Sales_ Managing Quotation Validity
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Week 4 Term 3 Study Techniques revisited.pptx
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
How to Manage Bill Control Policy in Odoo 18
Strengthening open access through collaboration: building connections with OP...
Presentation on Janskhiya sthirata kosh.
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
LDMMIA Reiki Yoga S2 L3 Vod Sample Preview
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
An introduction to Dialogue writing.pptx
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
Sunset Boulevard Student Revision Booklet
vedic maths in python:unleasing ancient wisdom with modern code

First Normal Form, Second Normal Form.pptx

  • 1. Sanjivani Rural Education Society’s Sanjivani College of Engineering, Kopargaon-423 603 (An Autonomous Institute, Affiliated to Savitribai Phule Pune University, Pune) NACC ‘A’ Grade Accredited, ISO 9001:2015 Certified Department of Computer Engineering (NBA Accredited) Prof. Monika Agrawal Assistant Professor E-mail : [email protected] Contact No: 8770361037 Course:CO210 Database Management System Lecture-04 1NF 2NF
  • 2. Content s DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 2 Normalization Rule First Normal Form Second Normal Form
  • 3. Normalization Rule DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 3 Normalization is a process of organizing the data in database to avoid data redundancy, insertion anomaly, update anomaly & deletion anomaly. Normalization is a systematic approach of decomposing tables to eliminate data redundancy. Normalization rules are divided into the following normal forms: First Normal Form Second Normal Form Third Normal Form BCNF
  • 4. First Normal Form DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 4 1NF Above table is not in First Normal Form. In 1NF any row must not have a column in which more than one value is saved like separated with commas. As per 1NF no two rows of data must contain repeating group of information i.e each set of column must have a unique value, such that multiple columns can not be used to fetch the same row. Each table organized into rows and each row should have a primary key. Student Age Subject Ram 15 Biology, Maths Vinay 14 Maths Sham 17 Maths
  • 5. First Normal Form (Cont.) Before 1NF After 1NF Student Age Subject Ram 15 Biology Ram 15 Maths Vinay 14 Maths Sham 17 Maths DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 5
  • 6. 2NF • Table must be in 1NF • As per 2NF there must not be any partial dependency of any column on primary key or candidate key. • If any column depends only on one part of concatenated key then the table fails second normal form. • In above table the candidate key is {student, subject}. Age depends only on Student column not on Subject column means, Age column depends on part of candidate key. It is incorrect as per 2NF. DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 6
  • 7. 2NF (Cont.) DEPARTMENT OF COMPUTER ENGINEERING, Sanjivani COE, Kopargaon 7 • For second normal form split out the subjects in to an independent table and match them up using the student names as foreign key. • After 2NF Student table Subject table Student Age Ram 15 Vinay 14 Sham 17 Student Subject Ram Biology Ram Maths Vinay Maths Sham Maths