Normalisation - 2nd normal form

college
collegecollege
Normalisation - 2nd normal form
NormalizationNormalization
What Normalization is forWhat Normalization is for
is to make sure
that each database
table carries only the
attributes
that actuallyactually
describedescribe
What is needed.What is needed.
Normalisation is a technique used for designing relational
database tables to minimise duplication of information.
Data is normalised in order to redundancy and
inconsistency, and to make it easier to maintain.
Normalization generally involves splitting existing tables
into multiple ones, which must be re-joined or linked
each time a query is issued.
Normalisation provides rules that help:
o Organise data efficiently
o Ensure that only related data are stored in the table.
•Atomic data values, eliminates
duplicate columns from the same
table
•Each row is uniquely identified;
Needs a primary key, so each
row can be unique
•Each field name is also unique
Normalisation - 2nd normal form
There are two goals of the normalization
process:
eliminate redundant dataeliminate redundant data (for example,
storing the same data in more than one
table) and
ensure data dependenciesensure data dependencies make sense (only
storing related data in a table). Both of these
are worthy goals as they reduce the amount
of space a database consumes and ensure
that data is logically stored.
First normal form (1NF)First normal form (1NF) sets the very basic rules for an organized
database:
Eliminate duplicative columns from the same table.
Create separate tables for each group of related data and identify
each row with a unique column or set of columns (the primary
key).
Second normal form (2NF)Second normal form (2NF) further addresses the concept of
removing duplicative data:
Meet all the requirements of the first normal form.
Remove subsets of data that apply to multiple rows of a table
and place them in separate tables.
Create relationships between these new tables and their
predecessors through the use of foreign keys.
Third normal form (3NF)Third normal form (3NF) goes one large step further:
Meet all the requirements of the second normal form.
Remove columns that are not dependent upon the primary key.
Finally, fourth normal form (4NF)Finally, fourth normal form (4NF) has one additional requirement:
Meet all the requirements of the third normal form.
A relation is in 4NF if it has no multi-valued dependencies.
Definition: In order to be in Second Normal
Form, a relation must first fulfill the
requirements to be in First Normal Form.
Additionally, each nonkey attribute in the
relation must be functionally dependent upon
the primary key.
Order # Customer Contact Person Total
1 Acme Widgets John Doe $134.23
2 ABC Corporation Fred Flintstone $521.24
3 Acme Widgets John Doe $1042.42
4 Acme Widgets John Doe $928.53
The relation is in First Normal Form, but not Second Normal Form:
Remove subsets of data that apply to multiple rows of a table and place them inRemove subsets of data that apply to multiple rows of a table and place them in
separate tablesseparate tables
Customer Contact Person
Acme Widgets John Doe
ABC Corporation Fred Flintstone
Order # Customer Total
1 Acme Widgets $134.23
2 ABC Corporation $521.24
3 Acme Widgets $1042.42
4 Acme Widgets $928.53
The creation of two separate tables eliminates
the dependency problem experienced in the
previous case.
In the first table, contact person is dependent
upon the primary key -- customer name. The
second table only includes the information
unique to each order.
Someone interested in the contact person for
each order could obtain this information by
performing a JOIN operation
summary
the rules for second normal form are:
• Non key attributes must depend on every part
of the primary key.
• The table must already be in first normal form
Advantages of normalization
• Normalization provides numerous benefits to a
database. Some of the major benefits include the
following :
• Greater overall database organization
• Reduction of redundant data
• Data consistency within the database
• A much more flexible database design
• A better handle on database security
1 de 13

Recomendados

The Relational ModelThe Relational Model
The Relational ModelBhandari Nawaraj
5.5K visualizações63 slides
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbmssethu pm
18.9K visualizações27 slides
Type of database modelsType of database models
Type of database modelsSanthiNivas
831 visualizações27 slides
NormalizationNormalization
NormalizationSalman Memon
26.1K visualizações17 slides
Normal formsNormal forms
Normal formsSamuel Igbanogu
2.2K visualizações18 slides

Mais conteúdo relacionado

Mais procurados

Normalization in a DatabaseNormalization in a Database
Normalization in a DatabaseBishrul Haq
589 visualizações9 slides
Data dictionaryData dictionary
Data dictionarySurbhi Panhalkar
34.7K visualizações12 slides
Dbms normalizationDbms normalization
Dbms normalizationPratik Devmurari
2.5K visualizações10 slides
Normalization in DBMSNormalization in DBMS
Normalization in DBMSPrateek Parimal
8.9K visualizações23 slides
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMSMerlin Florrence
4.4K visualizações88 slides
Constraints In SqlConstraints In Sql
Constraints In SqlAnurag
12.7K visualizações13 slides

Mais procurados(20)

Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul Haq589 visualizações
Data dictionaryData dictionary
Data dictionary
Surbhi Panhalkar34.7K visualizações
Dbms normalizationDbms normalization
Dbms normalization
Pratik Devmurari2.5K visualizações
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Prateek Parimal8.9K visualizações
Introduction to RDBMSIntroduction to RDBMS
Introduction to RDBMS
Merlin Florrence4.4K visualizações
Constraints In SqlConstraints In Sql
Constraints In Sql
Anurag 12.7K visualizações
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
Damian T. Gordon63.9K visualizações
NormalizationNormalization
Normalization
meet darji962 visualizações
Unit01 dbmsUnit01 dbms
Unit01 dbms
arnold 74902.4K visualizações
Lecture 04 normalization Lecture 04 normalization
Lecture 04 normalization
emailharmeet13.4K visualizações
Query processing-and-optimizationQuery processing-and-optimization
Query processing-and-optimization
WBUTTUTORIALS8.6K visualizações
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Maulana Abul Kalam Azad University of Technology887 visualizações
Object oriented databasesObject oriented databases
Object oriented databases
Sajith Ekanayaka9.1K visualizações
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
madhav bansal17.1K visualizações
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
koolkampus29.7K visualizações
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Hitesh Mohapatra3.6K visualizações
Database management system presentationDatabase management system presentation
Database management system presentation
sameerraaj87.9K visualizações
RDBMSRDBMS
RDBMS
PriyangaRajaram6.2K visualizações
Database Management SystemDatabase Management System
Database Management System
Nishant Munjal12K visualizações
Files Vs DataBaseFiles Vs DataBase
Files Vs DataBase
Dr. C.V. Suresh Babu48.9K visualizações

Destaque

DBMS - NormalizationDBMS - Normalization
DBMS - NormalizationJitendra Tomar
1.1M visualizações33 slides
NormalizationNormalization
Normalizationochesing
17.3K visualizações25 slides
NormalizationNormalization
Normalizationmomo2187
3.2K visualizações50 slides

Destaque(20)

Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal112.2K visualizações
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr520.9K visualizações
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
Jitendra Tomar1.1M visualizações
NormalizationNormalization
Normalization
ochesing17.3K visualizações
NormalizationNormalization
Normalization
momo21873.2K visualizações
TIMEN: An Open Temporal Expression Normalisation ResourceTIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation Resource
Leon Derczynski1.7K visualizações
Database management systemDatabase management system
Database management system
Tushar Desarda960 visualizações
Normalisation   lesson planNormalisation   lesson plan
Normalisation lesson plan
Mohamed Maguid1.1K visualizações
NormalisationNormalisation
Normalisation
Wira Galacticos395 visualizações
Database NormalisationDatabase Normalisation
Database Normalisation
Amin Omi490 visualizações
Normalisation student summaryNormalisation student summary
Normalisation student summary
mary_ramsay1.9K visualizações
NormalizationNormalization
Normalization
Google Student Ambassador5.1K visualizações
Importance of NormalizationImportance of Normalization
Importance of Normalization
Shwe Yee16.1K visualizações
NormalizationNormalization
Normalization
lingesan5K visualizações
Normalization in databasesNormalization in databases
Normalization in databases
baabtra.com - No. 1 supplier of quality freshers5.6K visualizações
NormalisationNormalisation
Normalisation
Forrester High School1.5K visualizações
Dbms and sqlpptxDbms and sqlpptx
Dbms and sqlpptx
thesupermanreturns3.5K visualizações
Integrating Sustainability-3Integrating Sustainability-3
Integrating Sustainability-3
sondramilkie319 visualizações
Witch's hats exhibitionWitch's hats exhibition
Witch's hats exhibition
JoininVisconde170 visualizações

Similar a Normalisation - 2nd normal form

NormalizationNormalization
NormalizationAltafsoomro
1.5K visualizações18 slides
normaliztionnormaliztion
normaliztionRamadhani S. Zuberi
533 visualizações18 slides
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docxSHARMISTHAlearning
12 visualizações11 slides
Normalization of database tablesNormalization of database tables
Normalization of database tablesDhani Ahmad
4.8K visualizações51 slides
T-SQL OverviewT-SQL Overview
T-SQL OverviewAhmed Elbaz
8.1K visualizações85 slides

Similar a Normalisation - 2nd normal form(20)

NormalizationNormalization
Normalization
Altafsoomro1.5K visualizações
normaliztionnormaliztion
normaliztion
Ramadhani S. Zuberi533 visualizações
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docx
SHARMISTHAlearning12 visualizações
Normalization of database tablesNormalization of database tables
Normalization of database tables
Dhani Ahmad4.8K visualizações
T-SQL OverviewT-SQL Overview
T-SQL Overview
Ahmed Elbaz8.1K visualizações
NormalizationNormalization
Normalization
thuvarakan28523 visualizações
Faq dbmsFaq dbms
Faq dbms
ANIRUDHTYAGI2010193 visualizações
Access 05Access 05
Access 05
Alexander Babich90 visualizações
Research gadotResearch gadot
Research gadot
Jotham Gadot875 visualizações
Intro To DataBaseIntro To DataBase
Intro To DataBase
DevMix791 visualizações
Ms sql server tips 1 0Ms sql server tips 1 0
Ms sql server tips 1 0
Arman Nasrollahi151 visualizações
Normalization.pptNormalization.ppt
Normalization.ppt
NIDHISAHU711 visão
Database normalizationDatabase normalization
Database normalization
Vaibhav Kathuria3.6K visualizações
Normalization AcceptedNormalization Accepted
Normalization Accepted
prasaddurga1.2K visualizações
Adeshhazra_DBMS_ca1_bca4thsem.pdfAdeshhazra_DBMS_ca1_bca4thsem.pdf
Adeshhazra_DBMS_ca1_bca4thsem.pdf
DwipayanSaha17 visualizações
Relational database design unit(v)Relational database design unit(v)
Relational database design unit(v)
PadmapriyaA694 visualizações
Sql interview q&aSql interview q&a
Sql interview q&a
Syed Shah85 visualizações

Último(20)

NS3 Unit 2 Life processes of animals.pptxNS3 Unit 2 Life processes of animals.pptx
NS3 Unit 2 Life processes of animals.pptx
manuelaromero201394 visualizações
UWP OA Week Presentation (1).pptxUWP OA Week Presentation (1).pptx
UWP OA Week Presentation (1).pptx
Jisc65 visualizações
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdfCWP_23995_2013_17_11_2023_FINAL_ORDER.pdf
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdf
SukhwinderSingh895865480 visualizações
Lecture: Open InnovationLecture: Open Innovation
Lecture: Open Innovation
Michal Hron94 visualizações
Plastic waste.pdfPlastic waste.pdf
Plastic waste.pdf
alqaseedae94 visualizações
SIMPLE PRESENT TENSE_new.pptxSIMPLE PRESENT TENSE_new.pptx
SIMPLE PRESENT TENSE_new.pptx
nisrinamadani2159 visualizações
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN189 visualizações
Industry4wrd.pptxIndustry4wrd.pptx
Industry4wrd.pptx
BC Chew157 visualizações
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}
ANATOMY AND PHYSIOLOGY UNIT 1 { PART-1}
DR .PALLAVI PATHANIA190 visualizações
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan256 visualizações
Women from Hackney’s History: Stoke Newington by Sue DoeWomen from Hackney’s History: Stoke Newington by Sue Doe
Women from Hackney’s History: Stoke Newington by Sue Doe
History of Stoke Newington117 visualizações
Scope of Biochemistry.pptxScope of Biochemistry.pptx
Scope of Biochemistry.pptx
shoba shoba119 visualizações
Ch. 7 Political Participation and Elections.pptxCh. 7 Political Participation and Elections.pptx
Ch. 7 Political Participation and Elections.pptx
Rommel Regala56 visualizações
Universe revised.pdfUniverse revised.pdf
Universe revised.pdf
DrHafizKosar88 visualizações
Class 10 English notes 23-24.pptxClass 10 English notes 23-24.pptx
Class 10 English notes 23-24.pptx
TARIQ KHAN74 visualizações
ICANNICANN
ICANN
RajaulKarim2061 visualizações

Normalisation - 2nd normal form

  • 2. NormalizationNormalization What Normalization is forWhat Normalization is for is to make sure that each database table carries only the attributes that actuallyactually describedescribe What is needed.What is needed.
  • 3. Normalisation is a technique used for designing relational database tables to minimise duplication of information. Data is normalised in order to redundancy and inconsistency, and to make it easier to maintain. Normalization generally involves splitting existing tables into multiple ones, which must be re-joined or linked each time a query is issued. Normalisation provides rules that help: o Organise data efficiently o Ensure that only related data are stored in the table.
  • 4. •Atomic data values, eliminates duplicate columns from the same table •Each row is uniquely identified; Needs a primary key, so each row can be unique •Each field name is also unique
  • 6. There are two goals of the normalization process: eliminate redundant dataeliminate redundant data (for example, storing the same data in more than one table) and ensure data dependenciesensure data dependencies make sense (only storing related data in a table). Both of these are worthy goals as they reduce the amount of space a database consumes and ensure that data is logically stored.
  • 7. First normal form (1NF)First normal form (1NF) sets the very basic rules for an organized database: Eliminate duplicative columns from the same table. Create separate tables for each group of related data and identify each row with a unique column or set of columns (the primary key). Second normal form (2NF)Second normal form (2NF) further addresses the concept of removing duplicative data: Meet all the requirements of the first normal form. Remove subsets of data that apply to multiple rows of a table and place them in separate tables. Create relationships between these new tables and their predecessors through the use of foreign keys. Third normal form (3NF)Third normal form (3NF) goes one large step further: Meet all the requirements of the second normal form. Remove columns that are not dependent upon the primary key. Finally, fourth normal form (4NF)Finally, fourth normal form (4NF) has one additional requirement: Meet all the requirements of the third normal form. A relation is in 4NF if it has no multi-valued dependencies.
  • 8. Definition: In order to be in Second Normal Form, a relation must first fulfill the requirements to be in First Normal Form. Additionally, each nonkey attribute in the relation must be functionally dependent upon the primary key.
  • 9. Order # Customer Contact Person Total 1 Acme Widgets John Doe $134.23 2 ABC Corporation Fred Flintstone $521.24 3 Acme Widgets John Doe $1042.42 4 Acme Widgets John Doe $928.53 The relation is in First Normal Form, but not Second Normal Form: Remove subsets of data that apply to multiple rows of a table and place them inRemove subsets of data that apply to multiple rows of a table and place them in separate tablesseparate tables
  • 10. Customer Contact Person Acme Widgets John Doe ABC Corporation Fred Flintstone Order # Customer Total 1 Acme Widgets $134.23 2 ABC Corporation $521.24 3 Acme Widgets $1042.42 4 Acme Widgets $928.53
  • 11. The creation of two separate tables eliminates the dependency problem experienced in the previous case. In the first table, contact person is dependent upon the primary key -- customer name. The second table only includes the information unique to each order. Someone interested in the contact person for each order could obtain this information by performing a JOIN operation
  • 12. summary the rules for second normal form are: • Non key attributes must depend on every part of the primary key. • The table must already be in first normal form
  • 13. Advantages of normalization • Normalization provides numerous benefits to a database. Some of the major benefits include the following : • Greater overall database organization • Reduction of redundant data • Data consistency within the database • A much more flexible database design • A better handle on database security