SlideShare a Scribd company logo
1 of 18
Normalization
Normalization is a process of organizing the data in database to avoid
data redundancy, insertion anomaly, update anomaly & deletion
anomaly.
Let us discuss the anomalies in Badly formed
tables
• Consider following badly formed table.
Studid Sname SubAbbre Subname Hrs Grade Class
s101 Sachin DTE,
RDM,
AMS
Digital
Techniques,
Relational DBMS,
Applied Maths
48
64
48
C
A
A
CM3G
s102 AJIT DTE,
RDM,
AMS
Digital
Techniques,
Relational DBMS,
Applied Maths
48
64
48
A
A
A
CM3G
s102 Sunita DTE,
RDM,
AMS
Digital
Techniques,
Relational DBMS,
Applied Maths
48
64
48
A
A
C
CM3G
The following table consists of Anomalies-
• 1)Insertion Anomalies- Suppose we want to add new subject (i.e ETE
electrical technology) it must be added in each row.
• 2)Data Redundancy-The Subject Names and course is repeatedly
stored in table. Which leads to more wastage of memory
• 3)Updation Anamalies- If we want to change subject name Relational
Dbms to DBMS it must be updated every where.
• 4)Deletion Anomalies-It is difficult to delete particular value from
table.
.Need of Normalization
•The normalization is performed to avoid or to
reduce such a anomalies in badly formed table
• 1)Reduces Redundancy
• 2)Insertion becomes easy
• 3)Deletion becomes easy
• 4)Updation becomes easy
Normal Forms
• First normal form(1NF)
• Second normal form(2NF)
• Third normal form(3NF)
• Boyce & Codd normal form (BCNF)
Higher the Normal form more the consistency of data
in Database,i.E less redundancy and less anomalies
1NF-
Database is said to be in 1NF iff-
1) Domains are atomic.
That means  column of a table cannot hold multiple values.
2)Each row must have unique combinations of values.
SO ABOVE Badly FORMED TABLE IS NOT IN 1NF.
After applying Rule of 1NF
The below table is now in 1NF
Studid Sname SubAbbre Subname Hrs Grade Class
s101 Sachin DTE Digital Techniques 48 C cM3G
s101 Sachin RDM Relational DBMS 64 A cM3G
s101 Sachin AMS Applied Maths 48 A cM3G
Before Starting 2NF we need to know FD-
(Functional Dependency)
• Functional dependency is a relationship that exists when one
attribute uniquely determines another attribute.
• If R is a relation with attributes X and Y, a functional dependency
between the attributes is represented as X->Y, which specifies Y is
functionally dependent on X.
• Here X is a determinant set and Y is a dependent attribute.
• Each value of X i s a s s o c i a t e d p r e c i s e l y
w i t h o n e Y v a l u e .
2NF-
• The databse is said to be in 2NF iff
1)It must be 1NF
2)There is no partial dependency
Partial dependency means part of primary key determines attribute.
Consider above table structure
Student_course(studid,sname,subAbbrev,hrs,class)
Primary key is composite
Primary key={studid,subabbrev}
• Here is presence of partial Dependency
As
Subabbrevsubname
Also
Studidsname
So remove these partial dependency, it will reduces redundancy also
Simply store related columns of table in separate table
After applying rules of 2NF-
• Remove Partial dependency,and store related columns in seprate
tables.
1)studentinfo(studid,sname)
2)subject(subabbrev,subname,hrs)
3)studentgrade(studid,subabbrev,grade)
SO above database is in 2NF
Above database also have some anomalies-----so normalize it into 3NF
3NF
• Database is said to be in 3NF iff
1)It must be in 2nf
2)There is no transitive dependency
Transitive Dependency-Non prime attribute determines another non
prime attribute.
So recall tables in 2NF ---
1)studentinfo(studid,sname)
2)subject(subabbrev,subname,hrs)
3)studentgrade(studid,subabbrev,grade)
2)subject(subabbrev,subname,hrs)
Here subnamehrs (both are non prime attributes)
So after 3NF database is like below
1)studentinfo(studid,sname)
2)studentgrade(studid,subabbrev,grade)
3) subject(subname,hrs)
Boyce Codd Normal Form-
Database is said to be is in BCNF if and only if
1)It is already is in 2NF and
2)Every determinant is Candidate key
BCNF is more stricter form of normalization
Dependency preservation is more difficult in BCNF.
The BCNF may leads to loss of data(Lossy Decomposition)
Difference Between 3NF and BCNF
3NF BCNF
1) The databse is said to be in 2NF if AND
ONLY IF
It must be 1NF AND
There is no partial dependency
Database is said to be is in BCNF if and
only if
It is already is in 2NF AND
2)Every determinant is Candidate key
2)It easy to achieve It is difficult to achieve
3) Less Stricter form of Normalization More Stricter Form of Normalization
4) Maintaining FD is easy Maintaining Functional Dependency is
difficult
5)
Multivalued Dependency(MVD)
• It is tuple generating dependency
• A B i.e A multipally deteremines B if and only if for any relation R.
Consists of atleast three columns. Namely A,B,C
And for Single value of A there are multiple values of B and C
And A and B, and A and C are not depedent.
Example of MVD
• Example
Consider database schema
Movies(title,actor,yearofrelease,length)
Title actor Yearofrelease length
Golmal Amol palekar 1990 2.78
Golmal Abhishek
bacchan
Harshad
Warsi
2002 2.60
Normalisation by vmb

More Related Content

What's hot

1 introduction
1 introduction1 introduction
1 introductionUtkarsh De
 
Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Farhan Chishti
 
Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...
Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...
Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...Marina Santini
 
23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMS23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMSkoolkampus
 
Ch 1-2 NN classifier
Ch 1-2 NN classifierCh 1-2 NN classifier
Ch 1-2 NN classifierZahra Amini
 
Database Design and the ER Model, Indexing and Hashing
Database Design and the ER Model, Indexing and HashingDatabase Design and the ER Model, Indexing and Hashing
Database Design and the ER Model, Indexing and HashingPrabu U
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design Jayant Dalvi
 
Noorbehbahani rea sc
Noorbehbahani rea scNoorbehbahani rea sc
Noorbehbahani rea scnoorbehbahani
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)Sudarshan Mondal
 
Support Vector Machine(SVM) with Iris and Mushroom Dataset
Support Vector Machine(SVM) with Iris and Mushroom DatasetSupport Vector Machine(SVM) with Iris and Mushroom Dataset
Support Vector Machine(SVM) with Iris and Mushroom DatasetPawandeep Kaur
 
Introduction to Data Structures and Linked List
Introduction to Data Structures and Linked ListIntroduction to Data Structures and Linked List
Introduction to Data Structures and Linked ListSelvaraj Seerangan
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Rushdi Shams
 
4 the sql_standard
4 the  sql_standard4 the  sql_standard
4 the sql_standardUtkarsh De
 
Андрей Гулин "Знакомство с MatrixNet"
Андрей Гулин "Знакомство с MatrixNet"Андрей Гулин "Знакомство с MatrixNet"
Андрей Гулин "Знакомство с MatrixNet"Yandex
 

What's hot (19)

1 introduction
1 introduction1 introduction
1 introduction
 
Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4
 
Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...
Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...
Lecture 02: Machine Learning for Language Technology - Decision Trees and Nea...
 
Data structue q & a
Data structue q & aData structue q & a
Data structue q & a
 
23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMS23. Advanced Datatypes and New Application in DBMS
23. Advanced Datatypes and New Application in DBMS
 
Ch04 t2fs
Ch04 t2fsCh04 t2fs
Ch04 t2fs
 
Ch 1-2 NN classifier
Ch 1-2 NN classifierCh 1-2 NN classifier
Ch 1-2 NN classifier
 
Database Design and the ER Model, Indexing and Hashing
Database Design and the ER Model, Indexing and HashingDatabase Design and the ER Model, Indexing and Hashing
Database Design and the ER Model, Indexing and Hashing
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
Noorbehbahani rea sc
Noorbehbahani rea scNoorbehbahani rea sc
Noorbehbahani rea sc
 
Lec 8 (distributed database)
Lec 8 (distributed database)Lec 8 (distributed database)
Lec 8 (distributed database)
 
Support Vector Machine(SVM) with Iris and Mushroom Dataset
Support Vector Machine(SVM) with Iris and Mushroom DatasetSupport Vector Machine(SVM) with Iris and Mushroom Dataset
Support Vector Machine(SVM) with Iris and Mushroom Dataset
 
Introduction to Data Structures and Linked List
Introduction to Data Structures and Linked ListIntroduction to Data Structures and Linked List
Introduction to Data Structures and Linked List
 
Unit 03 dbms
Unit 03 dbmsUnit 03 dbms
Unit 03 dbms
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)Distributed Database Management Systems (Distributed DBMS)
Distributed Database Management Systems (Distributed DBMS)
 
4 the sql_standard
4 the  sql_standard4 the  sql_standard
4 the sql_standard
 
Андрей Гулин "Знакомство с MatrixNet"
Андрей Гулин "Знакомство с MatrixNet"Андрей Гулин "Знакомство с MatrixNet"
Андрей Гулин "Знакомство с MatrixNet"
 
Classification
ClassificationClassification
Classification
 

Similar to Normalisation by vmb

Normmmalizzarion.ppt
Normmmalizzarion.pptNormmmalizzarion.ppt
Normmmalizzarion.pptDeependra35
 
Relational database design
Relational database designRelational database design
Relational database designSURBHI SAROHA
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFBiplap Bhattarai
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptxkshipra sony
 
Normalization_BCA_
Normalization_BCA_Normalization_BCA_
Normalization_BCA_Bhavini Shah
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.pptArumugam90
 
BUS RESERVATION SYSTEM.pptx
BUS RESERVATION SYSTEM.pptxBUS RESERVATION SYSTEM.pptx
BUS RESERVATION SYSTEM.pptxUrjaDhabarde
 
Matrix Factorization In Recommender Systems
Matrix Factorization In Recommender SystemsMatrix Factorization In Recommender Systems
Matrix Factorization In Recommender SystemsYONG ZHENG
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptxarjun431527
 
Oracle sql tutorial
Oracle sql tutorialOracle sql tutorial
Oracle sql tutorialMohd Tousif
 

Similar to Normalisation by vmb (20)

Normmmalizzarion.ppt
Normmmalizzarion.pptNormmmalizzarion.ppt
Normmmalizzarion.ppt
 
Relational database design
Relational database designRelational database design
Relational database design
 
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NFNormalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
 
Normalization
NormalizationNormalization
Normalization
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptx
 
Normalisation revision
Normalisation revisionNormalisation revision
Normalisation revision
 
DBMS 3.pdf
DBMS 3.pdfDBMS 3.pdf
DBMS 3.pdf
 
Normalization case
Normalization caseNormalization case
Normalization case
 
Chapter 3 ( PART 2 ).pptx
Chapter 3 ( PART 2 ).pptxChapter 3 ( PART 2 ).pptx
Chapter 3 ( PART 2 ).pptx
 
Week9_Theory.pptx
Week9_Theory.pptxWeek9_Theory.pptx
Week9_Theory.pptx
 
4.Database Management System.pdf
4.Database Management System.pdf4.Database Management System.pdf
4.Database Management System.pdf
 
N20190530
N20190530N20190530
N20190530
 
Unit 05 dbms
Unit 05 dbmsUnit 05 dbms
Unit 05 dbms
 
Normalization_BCA_
Normalization_BCA_Normalization_BCA_
Normalization_BCA_
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.ppt
 
BUS RESERVATION SYSTEM.pptx
BUS RESERVATION SYSTEM.pptxBUS RESERVATION SYSTEM.pptx
BUS RESERVATION SYSTEM.pptx
 
Matrix Factorization In Recommender Systems
Matrix Factorization In Recommender SystemsMatrix Factorization In Recommender Systems
Matrix Factorization In Recommender Systems
 
Normalisation
NormalisationNormalisation
Normalisation
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptx
 
Oracle sql tutorial
Oracle sql tutorialOracle sql tutorial
Oracle sql tutorial
 

Recently uploaded

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 

Recently uploaded (20)

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 

Normalisation by vmb

  • 1. Normalization Normalization is a process of organizing the data in database to avoid data redundancy, insertion anomaly, update anomaly & deletion anomaly.
  • 2. Let us discuss the anomalies in Badly formed tables • Consider following badly formed table. Studid Sname SubAbbre Subname Hrs Grade Class s101 Sachin DTE, RDM, AMS Digital Techniques, Relational DBMS, Applied Maths 48 64 48 C A A CM3G s102 AJIT DTE, RDM, AMS Digital Techniques, Relational DBMS, Applied Maths 48 64 48 A A A CM3G s102 Sunita DTE, RDM, AMS Digital Techniques, Relational DBMS, Applied Maths 48 64 48 A A C CM3G
  • 3. The following table consists of Anomalies- • 1)Insertion Anomalies- Suppose we want to add new subject (i.e ETE electrical technology) it must be added in each row. • 2)Data Redundancy-The Subject Names and course is repeatedly stored in table. Which leads to more wastage of memory • 3)Updation Anamalies- If we want to change subject name Relational Dbms to DBMS it must be updated every where. • 4)Deletion Anomalies-It is difficult to delete particular value from table.
  • 4. .Need of Normalization •The normalization is performed to avoid or to reduce such a anomalies in badly formed table • 1)Reduces Redundancy • 2)Insertion becomes easy • 3)Deletion becomes easy • 4)Updation becomes easy
  • 5. Normal Forms • First normal form(1NF) • Second normal form(2NF) • Third normal form(3NF) • Boyce & Codd normal form (BCNF) Higher the Normal form more the consistency of data in Database,i.E less redundancy and less anomalies
  • 6. 1NF- Database is said to be in 1NF iff- 1) Domains are atomic. That means  column of a table cannot hold multiple values. 2)Each row must have unique combinations of values. SO ABOVE Badly FORMED TABLE IS NOT IN 1NF. After applying Rule of 1NF
  • 7. The below table is now in 1NF Studid Sname SubAbbre Subname Hrs Grade Class s101 Sachin DTE Digital Techniques 48 C cM3G s101 Sachin RDM Relational DBMS 64 A cM3G s101 Sachin AMS Applied Maths 48 A cM3G
  • 8. Before Starting 2NF we need to know FD- (Functional Dependency) • Functional dependency is a relationship that exists when one attribute uniquely determines another attribute. • If R is a relation with attributes X and Y, a functional dependency between the attributes is represented as X->Y, which specifies Y is functionally dependent on X. • Here X is a determinant set and Y is a dependent attribute. • Each value of X i s a s s o c i a t e d p r e c i s e l y w i t h o n e Y v a l u e .
  • 9. 2NF- • The databse is said to be in 2NF iff 1)It must be 1NF 2)There is no partial dependency Partial dependency means part of primary key determines attribute. Consider above table structure Student_course(studid,sname,subAbbrev,hrs,class) Primary key is composite Primary key={studid,subabbrev}
  • 10. • Here is presence of partial Dependency As Subabbrevsubname Also Studidsname So remove these partial dependency, it will reduces redundancy also Simply store related columns of table in separate table
  • 11. After applying rules of 2NF- • Remove Partial dependency,and store related columns in seprate tables. 1)studentinfo(studid,sname) 2)subject(subabbrev,subname,hrs) 3)studentgrade(studid,subabbrev,grade) SO above database is in 2NF Above database also have some anomalies-----so normalize it into 3NF
  • 12. 3NF • Database is said to be in 3NF iff 1)It must be in 2nf 2)There is no transitive dependency Transitive Dependency-Non prime attribute determines another non prime attribute. So recall tables in 2NF --- 1)studentinfo(studid,sname) 2)subject(subabbrev,subname,hrs) 3)studentgrade(studid,subabbrev,grade)
  • 13. 2)subject(subabbrev,subname,hrs) Here subnamehrs (both are non prime attributes) So after 3NF database is like below 1)studentinfo(studid,sname) 2)studentgrade(studid,subabbrev,grade) 3) subject(subname,hrs)
  • 14. Boyce Codd Normal Form- Database is said to be is in BCNF if and only if 1)It is already is in 2NF and 2)Every determinant is Candidate key BCNF is more stricter form of normalization Dependency preservation is more difficult in BCNF. The BCNF may leads to loss of data(Lossy Decomposition)
  • 15. Difference Between 3NF and BCNF 3NF BCNF 1) The databse is said to be in 2NF if AND ONLY IF It must be 1NF AND There is no partial dependency Database is said to be is in BCNF if and only if It is already is in 2NF AND 2)Every determinant is Candidate key 2)It easy to achieve It is difficult to achieve 3) Less Stricter form of Normalization More Stricter Form of Normalization 4) Maintaining FD is easy Maintaining Functional Dependency is difficult 5)
  • 16. Multivalued Dependency(MVD) • It is tuple generating dependency • A B i.e A multipally deteremines B if and only if for any relation R. Consists of atleast three columns. Namely A,B,C And for Single value of A there are multiple values of B and C And A and B, and A and C are not depedent.
  • 17. Example of MVD • Example Consider database schema Movies(title,actor,yearofrelease,length) Title actor Yearofrelease length Golmal Amol palekar 1990 2.78 Golmal Abhishek bacchan Harshad Warsi 2002 2.60