SlideShare une entreprise Scribd logo
1  sur  22
Normalization
Welcome To Our
Presentation
Presentation on
normalization
•Presented by:
Pervej Mia
Id:150110002
Junnatul Ferdouse Prome
Id:150110003
Mahfuja Alam
Id:150110023
• Department Of Computer Science &
Engineering.
 IntroductionIntroduction
One of the most important steps in designing a database is
ensuring that the data is properly distributed among its
tables. A poorly design database can cripple an application,
producing problems with redundancy, in accuracy,
consistency and concurrency of data. Normalization is a
process that serves to reduce, if not eliminate, these
problems with data.
 What is Normalization?What is Normalization?
• Normalization is the process of reorganizing data in a
database so that it meets two basic requirements:
(1) There is no redundancy of data (all data is stored in only one place),
and
(2) Data dependencies are logical (all related data items are stored
together).
• Normalization isalso known asdata
normalization.
 Levels of NormalizationLevels of Normalization
• Levels of normalization based on the amount of
redundancy in thedatabase.
• Variouslevelsof normalization are:
– First Normal Form (1NF)
– Second Normal Form (2NF)
– Third Normal Form (3NF)
– Boyce-Codd Normal Form (BCNF)
– Fourth Normal Form (4NF)
– Fifth Normal Form (5NF)
– Domain Key Normal Form (DKNF)
Redundancy
NumberofTables
Complexity
 Diagram forlevel ofDiagram forlevel of
NormalizationNormalization
DKNF
1NF
2NF
3NF
4NF
5NF
Each higher level is a subset of the lower levelEach higher level is a subset of the lower level
 Non-Normalised TableNon-Normalised Table
ID Name Subjects
001231 William Hartnell Information Systems,
Systems Analysis,
Data Communications
001232 Patrick Troughton Systems Analysis,
Data Communications
001233 Jon Pertwee OO Programming,
Systems Analysis,
Data Communications
001234 Tom Baker Systems Analysis,
Data Communications
There is the Non-Normalized Table named : STUDENT
 First Normal FormFirst Normal Form
 Each field contains the smallest
meaningful value.
 Thetabledoesnot contain repeating
groupsof fieldsor repeating datawithin
thesamefield.
Create a separate table for each set of related data.
Identify each set of related data with a primary key.
 First Normal FormFirst Normal Form
• To convert data for unnormalised form to 1NF, simply
convert any repeated attributes into part of the candidate
key.
• STUDENT(ID, Name, Subjects)
• STUDENT(ID, Name, Subjects)
 This Is The First Normal Form Table:This Is The First Normal Form Table:
ID Name Subjects
001231 William Hartnell Information Systems
001231 William Hartnell Systems Analysis
001231 William Hartnell Data Communications
001232 Patrick Troughton Systems Analysis
001232 Patrick Troughton Data Communications
001233 Jon Pertwee OO Programming
001233 Jon Pertwee Systems Analysis
001233 Jon Pertwee Data Communications
001234 Tom Baker Systems Analysis
001234 Tom Baker Data Communications
 Second Normal FormSecond Normal Form
• Usually used in tables with a multiple-field primary key
(composite key).
• Each non-key field relates to the entire primary key.
• Any field that does not relate to the primary key is
placed in a separate table.
–MAIN POINT
 eliminate redundant data in a table
 Create separate tables for sets of values
that apply to multiple records
Table for Second Normal FromTable for Second Normal From
RefNo Name Address Status AccNo
345 C.J. Date 23, High Street Business 120768
345 C.J. Date 23, High Street Business 348973
543 F.D. Rolland 45, The Ash Domestic 987654
675 D.R. Howe 17, Low Street Business 745363
675 D.R. Howe 17, Low Street Business 678453
675 D.R. Howe 17, Low Street Business 348973
After CompleteAfter Complete Second Normal FormSecond Normal Form
RefNo AccNo
345 120768
345 348973
543 987654
675 745363
675 678453
675 348973
RefNo Name Address Status
345 C.J. Date 23, High Street Business
543 F.D. Rolland 45, The Ash Domestic
675 D.R. Howe 17, Low Street Business
 Third Normal FromThird Normal From
– Usually used in tables with a single- field
primary key.
– Records do not depend on anything other than
a table's primary key.
– Each non-key field is a fact about the key.
Table in Second NormalTable in Second Normal
Form For Third Normal FormForm For Third Normal Form
Branch
Name
Address Manager
No
Acc
No
Balance Type
Rathmines 15 Upr
Rathmimes Road
1234 1205 -£123.45 ‘D’
Rathmines 15 Upr
Rathmimes Road
1234 6784 £67.54 ‘C’
Rathmines 15 Upr
Rathmimes Road
1234 9843 £43.43 ‘C’
Dame St. 1 Dame Street 1101 5422 £34.50 ‘C’
Dame St. 1 Dame Street 1101 0998 £666.66 ‘D’
Table in Third Normal FormTable in Third Normal Form
Acc
No
Balance Type Branch
Name
1205 -£123.45 ‘D’ Rathmines
6784 £67.54 ‘C’ Rathmines
9843 £43.43 ‘C’ Rathmines
5422 £34.50 ‘C’ Dame St.
0998 £666.66 ‘D’ Dame St.
Branch
Name
Address Manager
No
Rathmines 15 Upr
Rathmimes Road
1234
Dame St. 1 Dame Street 1101
Boyce-Codd NormalBoyce-Codd Normal
FormForm
All attributes in a relation should be dependant upon the key,
the whole key and nothing but the key.
We can used that from find large sorting Attribute.
 Table in Third Normal FormTable in Third Normal Form
CourseNo Lecturer Time Room
FT225/2 P. O’Byrne 9.00 121
FT222/1 D. Gordon 10.00 666
DT266/2 K. O’Brien 1.00 343
DT266/1 D. Carroll 11.00 876
FT222/4 K. O’Brien 3.00 343
FT228/3 D. Gordon 4.00 666
Benefits of Normalization.Benefits of Normalization.
• The database does not have redundant data, it is smaller in
size so less money needs to be spent on storage
• Because there is less data to search through, it is much
faster to run a query on the data
• Because there is no data duplication there is better data
integrity and less risk of mistakes.
 
Complexity Of NormalizationComplexity Of Normalization
• The more tables and the more complex the database, the
slower queries can be to run.
 
• It is necessary to assign more relationships to interact
with larger numbers of tables.
 
• With more tables, setting up queries can become more
complex.
ACID PropertiesACID Properties
• Atomic
– State shows either all the effects of txn, or none of them
• Consistent
– Txn moves from a state where integrity holds, to another where
integrity holds
• Isolated
– Effect of txns is the same as txns running one after another (ie
looks like batch mode)
• Durable
– Once a txn has committed, its effects remain in the database
Normalization

Contenu connexe

Tendances (20)

Normalization
NormalizationNormalization
Normalization
 
Normalization Accepted
Normalization AcceptedNormalization Accepted
Normalization Accepted
 
Relational database design unit(v)
Relational database design unit(v)Relational database design unit(v)
Relational database design unit(v)
 
Learn Normalization in simple language
Learn Normalization in simple languageLearn Normalization in simple language
Learn Normalization in simple language
 
a - Normalizing a Data Model
a - Normalizing a Data Modela - Normalizing a Data Model
a - Normalizing a Data Model
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Bcnf
BcnfBcnf
Bcnf
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Normalization
NormalizationNormalization
Normalization
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Normalization in relational database management systems
Normalization in relational database management systemsNormalization in relational database management systems
Normalization in relational database management systems
 
Normalisation and anomalies
Normalisation and anomaliesNormalisation and anomalies
Normalisation and anomalies
 
Normalization
NormalizationNormalization
Normalization
 
Faq dbms
Faq dbmsFaq dbms
Faq dbms
 
Rdbms xp 03
Rdbms xp 03Rdbms xp 03
Rdbms xp 03
 
2 normalization
2 normalization2 normalization
2 normalization
 
Database Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal GulatiDatabase Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal Gulati
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
 

Similaire à Normalization

Similaire à Normalization (20)

normaliztion
normaliztionnormaliztion
normaliztion
 
Normalization
NormalizationNormalization
Normalization
 
Database Normalization.docx
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docx
 
Year 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st TermYear 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st Term
 
normalization-1nf-to-3nf-with-same-example.ppt
normalization-1nf-to-3nf-with-same-example.pptnormalization-1nf-to-3nf-with-same-example.ppt
normalization-1nf-to-3nf-with-same-example.ppt
 
Topics-Ch4Ch5.ppt
Topics-Ch4Ch5.pptTopics-Ch4Ch5.ppt
Topics-Ch4Ch5.ppt
 
Topics-Ch4Ch5.ppt
Topics-Ch4Ch5.pptTopics-Ch4Ch5.ppt
Topics-Ch4Ch5.ppt
 
week3.ppt
week3.pptweek3.ppt
week3.ppt
 
DB Design.ppt
DB Design.pptDB Design.ppt
DB Design.ppt
 
Intro to Data warehousing lecture 10
Intro to Data warehousing   lecture 10Intro to Data warehousing   lecture 10
Intro to Data warehousing lecture 10
 
Kumar lav
Kumar lavKumar lav
Kumar lav
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
Database Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an exampleDatabase Normalization - First, second and Third Normal Forms with an example
Database Normalization - First, second and Third Normal Forms with an example
 
Normalization
Normalization Normalization
Normalization
 
Normalization
NormalizationNormalization
Normalization
 
Roja128
Roja128Roja128
Roja128
 
Unit 3 dbms
Unit 3 dbmsUnit 3 dbms
Unit 3 dbms
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Database normalisation by D.Lukachuk
Database normalisation by D.LukachukDatabase normalisation by D.Lukachuk
Database normalisation by D.Lukachuk
 

Dernier

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 

Dernier (20)

ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 

Normalization

  • 2. Presentation on normalization •Presented by: Pervej Mia Id:150110002 Junnatul Ferdouse Prome Id:150110003 Mahfuja Alam Id:150110023 • Department Of Computer Science & Engineering.
  • 3.  IntroductionIntroduction One of the most important steps in designing a database is ensuring that the data is properly distributed among its tables. A poorly design database can cripple an application, producing problems with redundancy, in accuracy, consistency and concurrency of data. Normalization is a process that serves to reduce, if not eliminate, these problems with data.
  • 4.  What is Normalization?What is Normalization? • Normalization is the process of reorganizing data in a database so that it meets two basic requirements: (1) There is no redundancy of data (all data is stored in only one place), and (2) Data dependencies are logical (all related data items are stored together). • Normalization isalso known asdata normalization.
  • 5.  Levels of NormalizationLevels of Normalization • Levels of normalization based on the amount of redundancy in thedatabase. • Variouslevelsof normalization are: – First Normal Form (1NF) – Second Normal Form (2NF) – Third Normal Form (3NF) – Boyce-Codd Normal Form (BCNF) – Fourth Normal Form (4NF) – Fifth Normal Form (5NF) – Domain Key Normal Form (DKNF) Redundancy NumberofTables Complexity
  • 6.  Diagram forlevel ofDiagram forlevel of NormalizationNormalization DKNF 1NF 2NF 3NF 4NF 5NF Each higher level is a subset of the lower levelEach higher level is a subset of the lower level
  • 7.  Non-Normalised TableNon-Normalised Table ID Name Subjects 001231 William Hartnell Information Systems, Systems Analysis, Data Communications 001232 Patrick Troughton Systems Analysis, Data Communications 001233 Jon Pertwee OO Programming, Systems Analysis, Data Communications 001234 Tom Baker Systems Analysis, Data Communications There is the Non-Normalized Table named : STUDENT
  • 8.  First Normal FormFirst Normal Form  Each field contains the smallest meaningful value.  Thetabledoesnot contain repeating groupsof fieldsor repeating datawithin thesamefield. Create a separate table for each set of related data. Identify each set of related data with a primary key.
  • 9.  First Normal FormFirst Normal Form • To convert data for unnormalised form to 1NF, simply convert any repeated attributes into part of the candidate key. • STUDENT(ID, Name, Subjects) • STUDENT(ID, Name, Subjects)
  • 10.  This Is The First Normal Form Table:This Is The First Normal Form Table: ID Name Subjects 001231 William Hartnell Information Systems 001231 William Hartnell Systems Analysis 001231 William Hartnell Data Communications 001232 Patrick Troughton Systems Analysis 001232 Patrick Troughton Data Communications 001233 Jon Pertwee OO Programming 001233 Jon Pertwee Systems Analysis 001233 Jon Pertwee Data Communications 001234 Tom Baker Systems Analysis 001234 Tom Baker Data Communications
  • 11.  Second Normal FormSecond Normal Form • Usually used in tables with a multiple-field primary key (composite key). • Each non-key field relates to the entire primary key. • Any field that does not relate to the primary key is placed in a separate table. –MAIN POINT  eliminate redundant data in a table  Create separate tables for sets of values that apply to multiple records
  • 12. Table for Second Normal FromTable for Second Normal From RefNo Name Address Status AccNo 345 C.J. Date 23, High Street Business 120768 345 C.J. Date 23, High Street Business 348973 543 F.D. Rolland 45, The Ash Domestic 987654 675 D.R. Howe 17, Low Street Business 745363 675 D.R. Howe 17, Low Street Business 678453 675 D.R. Howe 17, Low Street Business 348973
  • 13. After CompleteAfter Complete Second Normal FormSecond Normal Form RefNo AccNo 345 120768 345 348973 543 987654 675 745363 675 678453 675 348973 RefNo Name Address Status 345 C.J. Date 23, High Street Business 543 F.D. Rolland 45, The Ash Domestic 675 D.R. Howe 17, Low Street Business
  • 14.  Third Normal FromThird Normal From – Usually used in tables with a single- field primary key. – Records do not depend on anything other than a table's primary key. – Each non-key field is a fact about the key.
  • 15. Table in Second NormalTable in Second Normal Form For Third Normal FormForm For Third Normal Form Branch Name Address Manager No Acc No Balance Type Rathmines 15 Upr Rathmimes Road 1234 1205 -£123.45 ‘D’ Rathmines 15 Upr Rathmimes Road 1234 6784 £67.54 ‘C’ Rathmines 15 Upr Rathmimes Road 1234 9843 £43.43 ‘C’ Dame St. 1 Dame Street 1101 5422 £34.50 ‘C’ Dame St. 1 Dame Street 1101 0998 £666.66 ‘D’
  • 16. Table in Third Normal FormTable in Third Normal Form Acc No Balance Type Branch Name 1205 -£123.45 ‘D’ Rathmines 6784 £67.54 ‘C’ Rathmines 9843 £43.43 ‘C’ Rathmines 5422 £34.50 ‘C’ Dame St. 0998 £666.66 ‘D’ Dame St. Branch Name Address Manager No Rathmines 15 Upr Rathmimes Road 1234 Dame St. 1 Dame Street 1101
  • 17. Boyce-Codd NormalBoyce-Codd Normal FormForm All attributes in a relation should be dependant upon the key, the whole key and nothing but the key. We can used that from find large sorting Attribute.
  • 18.  Table in Third Normal FormTable in Third Normal Form CourseNo Lecturer Time Room FT225/2 P. O’Byrne 9.00 121 FT222/1 D. Gordon 10.00 666 DT266/2 K. O’Brien 1.00 343 DT266/1 D. Carroll 11.00 876 FT222/4 K. O’Brien 3.00 343 FT228/3 D. Gordon 4.00 666
  • 19. Benefits of Normalization.Benefits of Normalization. • The database does not have redundant data, it is smaller in size so less money needs to be spent on storage • Because there is less data to search through, it is much faster to run a query on the data • Because there is no data duplication there is better data integrity and less risk of mistakes.  
  • 20. Complexity Of NormalizationComplexity Of Normalization • The more tables and the more complex the database, the slower queries can be to run.   • It is necessary to assign more relationships to interact with larger numbers of tables.   • With more tables, setting up queries can become more complex.
  • 21. ACID PropertiesACID Properties • Atomic – State shows either all the effects of txn, or none of them • Consistent – Txn moves from a state where integrity holds, to another where integrity holds • Isolated – Effect of txns is the same as txns running one after another (ie looks like batch mode) • Durable – Once a txn has committed, its effects remain in the database