SlideShare une entreprise Scribd logo
1  sur  25
DATABASE NORMALIZATION
Presented by:
Group#01
Section:B
-::Scheme of Presentation::-
• Database Normalization (Intro)
• Data Anomalies and causes
• History/Overview
• Quick review to DBMS Keys
• All Forms of Normalization
• Conclusion
• References
• Q & A
-::Database Normalization::-
• The main goal of Database Normalization is to
restructure the logical data model of a
database to:
• Eliminate redundancy (Reduced memory
usage )
• Organize data efficiently
• Allows faster access (dependencies make sense)
• Reduce the potential for data anomalies.
-::Data Anomalies::-
• Data anomalies are inconsistencies in the data stored
in a database as a result of an operation such as
update, insertion, and/or deletion.
• Such inconsistencies may arise when have a
particular record stored in multiple locations and not
all of the copies are updated.
• We can prevent such anomalies by implementing 7
different level of normalization called Normal Forms
(NF)
• We’ll look at all of them briefly. 
-::Brief History/Overview::-
• Database Normalization was first proposed by Edgar F. Codd.
• In order to do normalization we must know what the
requirements are for each of the each Normal Forms that
we’ll go over.
• One of the key requirements to remember is that Normal
Forms are progressive. That is, in order to have 3rd NF we
must have 2nd NF and in order to have 2nd NF we must have 1st
NF.
-::(I) Super Key::-
• (I) Super Key – An attribute or a combination of attribute
that is used to identify the records uniquely is known as
Super Key. A table can have many Super Keys.
E.g. of Super Key
1 ID
2 ID, Name
3 ID, Address
4 ID, Department_ID
5 ID, Salary
6 Name, Address
7 Name, Address, Department_ID ………… So on as any
combination which can identify the records uniquely will be
a Super Key.
-::(II) Candidate Key::-
• (II) Candidate Key – It can be defined as
minimal Super Key or irreducible Super Key.
• E.g. of Candidate Key
1 Code
2 Name, Address
-::(III) Primary Key::-
• (III) Primary Key – A Candidate Key that is
used by the database designer for unique
identification of record Primary Key. A Primary
Key can consist of one attribute of a table.
E.g. of Primary Key - Database designer can
use one of the Candidate Key as a Primary Key.
In this case we have “Code” and “Name,
Address” as Candidate Key, we will consider
“Code” Key as a Primary Key.
-::(IV) Foreign Key::-
• (IV) Foreign Key – A foreign key is an attribute or
combination of attribute in one base table that
points to the candidate key (generally it is the
primary key) of another table. The purpose of the
foreign key is to ensure referential integrity of the
data i.e. only values that are supposed to appear
in the database are permitted.
E.g. of Foreign Key –
Such as if we have two tables one for employee
and 2nd for Manager, the key that relates each
other is called Foreign Key.
-::(V) Alternate Key::-
• (VI) Alternate Key – Alternate Key can be any
of the Candidate Keys except for the Primary
Key.
E.g. of Alternate Key is “Name, Address” as it
is the only other Candidate Key which is not a
Primary Key.
-::(VI) Secondary Key::-
• (VII) Secondary Key – Is used for
Identification of Rows but not usually Unique,
We can have multiple Secondary Key per
table.
E.g. of Secondary Key can be Name, Address,
Salary, Department_ID etc. as they can
identify the records but they might not be
unique.
-::1st Normal Form::-
-::The Requirements::-
• First normal form (INF) is now considered to be
part of the formal definition of a relation in the
basic (flat) relational model;12 historically, it was
defined to disallow multivalued attributes,
composite attributes, and their combinations. It
states that the domain of an attribute must
include only atomic (simple, indivisible) values
and that the value of any attribute in a tuple must
be a single value from the domain of that
attribute. Hence, INF disallows having a set of
values, a tuple of values, or a combination of
both as an attribute value for a single tuple.
• Remove the attribute DLOCATIONS that
violates 1NF and place it in a separate relation
DEPT_LOCATIONS along with the primary key
DNUMBER of DEPARTMENT. The primary key
of this relation is the combination {DNUMBER,
DLOCATION}, A distinct tuple in
DEPT_LOCATIONS exists for each location of a
department. This decomposes the non-1NF
relation into two 1NFrelations.
-::2nd Normal Form::-
-::The Requirements::-
• Second normal form (2NF) is based on the
concept of full functional dependency. A
functional dependency X -7 Y is a full functional
dependency if removal of any attribute A from X
means that the dependency does not hold any
more; that is, for any attribute A E X, (X - {A}) does
not functionally determine Y.A functional
dependency X -7 Y is a partial dependency if some
attribute A E X can be removed from X and the
dependency still holds; that is, for some A E X, (X -
{A}) -7 Y.
• Definition: A relation schema R is in second
normal form (2NF) if every nonprime attribute
A in R is not partially dependent on any key of
R.
-::3rd Normal Form::-
-::The Requirements::-
• Third normal form (3NF) is based on the
concept of transitive dependency. A functional
dependency X -> Y in a relation schema R is a
transitive dependency if there is a set of
attributes Z that is neither a candidate key nor
a subset of any key of R, and both X -> Z and
Z->Y hold.
Definition: A relation schema R is in third normal form (3NF) if, whenever a
nontrivial functional dependency X ->A holds in R, either
(a) X is a superkey of R, or
(b) A is a prime attribute of R.
-::Boyce-Codd Normal Form::-
Definition. A relation schema R is in BCNF if
whenever a nontrivial functionaldependency X-> A
holds in R, when X is a superkey of R.
-::Conclusion::-
• We have seen how Database Normalization
can decrease redundancy, increase efficiency
and reduce anomalies by implementing three
of seven different levels of normalization
called Normal Forms. The first three NF’s are
usually sufficient for most small to medium
size applications.
-::References::-
• Hillyer Mike, MySQL AB. An Introduction to Database Normalization,
http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html,
accessed October 17, 2006.
• Microsoft. Description of the database normalization basics,
http://support.microsoft.com/kb/283878 , accessed October 17, 2006.
• Wikipedia. Database Normalization.
http://en.wikipedia.org/wiki/Database_normalization.html , accessed October 17,
2006.

Contenu connexe

Tendances

Database Normalization
Database NormalizationDatabase Normalization
Database NormalizationArun Sharma
 
functional dependencies with example
functional dependencies with examplefunctional dependencies with example
functional dependencies with exampleSiddhi Viradiya
 
Presentation on c structures
Presentation on c   structures Presentation on c   structures
Presentation on c structures topu93
 
Chuẩn hóa CSDL
Chuẩn hóa CSDLChuẩn hóa CSDL
Chuẩn hóa CSDLphananhvu
 
Normalization of Data Base
Normalization of Data BaseNormalization of Data Base
Normalization of Data BaseRavinder Kamboj
 
Fd & Normalization - Database Management System
Fd & Normalization - Database Management SystemFd & Normalization - Database Management System
Fd & Normalization - Database Management SystemDrishti Bhalla
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationNickkisha Farrell
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a DatabaseBishrul Haq
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and dataMilind Patil
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced NormalizationAbdullah Khosa
 
Normalization by Ashwin and Tanmay
Normalization by Ashwin and TanmayNormalization by Ashwin and Tanmay
Normalization by Ashwin and TanmayAshwin Dinoriya
 
ALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NF
ALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NFALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NF
ALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NFijdms
 
Bsc cs ii-dbms-u-iv-normalization
Bsc cs ii-dbms-u-iv-normalizationBsc cs ii-dbms-u-iv-normalization
Bsc cs ii-dbms-u-iv-normalizationRai University
 
Open Gurukul Language PL/SQL
Open Gurukul Language PL/SQLOpen Gurukul Language PL/SQL
Open Gurukul Language PL/SQLOpen Gurukul
 
CPU : Structures And Unions
CPU : Structures And UnionsCPU : Structures And Unions
CPU : Structures And UnionsDhrumil Patel
 

Tendances (19)

Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
functional dependencies with example
functional dependencies with examplefunctional dependencies with example
functional dependencies with example
 
Dbms 4NF & 5NF
Dbms 4NF & 5NFDbms 4NF & 5NF
Dbms 4NF & 5NF
 
Presentation on c structures
Presentation on c   structures Presentation on c   structures
Presentation on c structures
 
Chuẩn hóa CSDL
Chuẩn hóa CSDLChuẩn hóa CSDL
Chuẩn hóa CSDL
 
Normalization of Data Base
Normalization of Data BaseNormalization of Data Base
Normalization of Data Base
 
Fd & Normalization - Database Management System
Fd & Normalization - Database Management SystemFd & Normalization - Database Management System
Fd & Normalization - Database Management System
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - Normalization
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
 
Abap slides user defined data types and data
Abap slides user defined data types and dataAbap slides user defined data types and data
Abap slides user defined data types and data
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
 
Normalization by Ashwin and Tanmay
Normalization by Ashwin and TanmayNormalization by Ashwin and Tanmay
Normalization by Ashwin and Tanmay
 
ALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NF
ALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NFALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NF
ALGORITHM FOR RELATIONAL DATABASE NORMALIZATION UP TO 3NF
 
C Slides
C SlidesC Slides
C Slides
 
Bsc cs ii-dbms-u-iv-normalization
Bsc cs ii-dbms-u-iv-normalizationBsc cs ii-dbms-u-iv-normalization
Bsc cs ii-dbms-u-iv-normalization
 
Kumar lav
Kumar lavKumar lav
Kumar lav
 
Open Gurukul Language PL/SQL
Open Gurukul Language PL/SQLOpen Gurukul Language PL/SQL
Open Gurukul Language PL/SQL
 
CPU : Structures And Unions
CPU : Structures And UnionsCPU : Structures And Unions
CPU : Structures And Unions
 
C Structures And Unions
C  Structures And  UnionsC  Structures And  Unions
C Structures And Unions
 

Similaire à Database Presentation

Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Dave Stokes
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptxarjun431527
 
Chapter – 4 Normalization and Relational Algebra.pdf
Chapter – 4 Normalization and Relational Algebra.pdfChapter – 4 Normalization and Relational Algebra.pdf
Chapter – 4 Normalization and Relational Algebra.pdfTamiratDejene1
 
Relational database design
Relational database designRelational database design
Relational database designSURBHI SAROHA
 
Introduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQLIntroduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQLMurageppa-QA
 
Design dbms
Design dbmsDesign dbms
Design dbmsIIITA
 
Database normalization
Database normalizationDatabase normalization
Database normalizationEdward Blurock
 
Ism normalization pine valley 2012
Ism normalization pine valley 2012Ism normalization pine valley 2012
Ism normalization pine valley 2012Akshit R Shah
 

Similaire à Database Presentation (20)

Normalisation
NormalisationNormalisation
Normalisation
 
Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016Relational Theory for Budding Einsteins -- LonestarPHP 2016
Relational Theory for Budding Einsteins -- LonestarPHP 2016
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptx
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
 
Chapter – 4 Normalization and Relational Algebra.pdf
Chapter – 4 Normalization and Relational Algebra.pdfChapter – 4 Normalization and Relational Algebra.pdf
Chapter – 4 Normalization and Relational Algebra.pdf
 
Unit 04 dbms
Unit 04 dbmsUnit 04 dbms
Unit 04 dbms
 
Year 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st TermYear 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st Term
 
Relational database design
Relational database designRelational database design
Relational database design
 
chapter_8.pptx
chapter_8.pptxchapter_8.pptx
chapter_8.pptx
 
NMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.pptNMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.ppt
 
Introduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQLIntroduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQL
 
Normalization
NormalizationNormalization
Normalization
 
Design dbms
Design dbmsDesign dbms
Design dbms
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Ism normalization pine valley 2012
Ism normalization pine valley 2012Ism normalization pine valley 2012
Ism normalization pine valley 2012
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
 
Unit v
Unit vUnit v
Unit v
 
Final exam in advance dbms
Final exam in advance dbmsFinal exam in advance dbms
Final exam in advance dbms
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
DATABASE DESIGN.pptx
DATABASE DESIGN.pptxDATABASE DESIGN.pptx
DATABASE DESIGN.pptx
 

Plus de Malik Ghulam Murtza

Plus de Malik Ghulam Murtza (13)

Introduction to Graph in general life
Introduction to Graph in general lifeIntroduction to Graph in general life
Introduction to Graph in general life
 
Computer Graphics Basics
Computer Graphics BasicsComputer Graphics Basics
Computer Graphics Basics
 
Assembly Language Programming Basics
Assembly Language Programming BasicsAssembly Language Programming Basics
Assembly Language Programming Basics
 
Zero is even or odd, Zero is positive or negative ?
Zero is even or odd, Zero is positive or negative ?Zero is even or odd, Zero is positive or negative ?
Zero is even or odd, Zero is positive or negative ?
 
Pendulum clocks
Pendulum clocksPendulum clocks
Pendulum clocks
 
Android orientation
Android orientationAndroid orientation
Android orientation
 
Role model for younger ones
Role model for younger onesRole model for younger ones
Role model for younger ones
 
Leadership vs Manager Report Lies
Leadership vs Manager Report LiesLeadership vs Manager Report Lies
Leadership vs Manager Report Lies
 
Object Oriented Programming Basics
Object Oriented Programming BasicsObject Oriented Programming Basics
Object Oriented Programming Basics
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
 
Tap2 Eat FYP presentation
Tap2 Eat FYP presentationTap2 Eat FYP presentation
Tap2 Eat FYP presentation
 
Leadership (7 leadership lies) presentation
Leadership (7 leadership lies) presentationLeadership (7 leadership lies) presentation
Leadership (7 leadership lies) presentation
 

Dernier

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 

Dernier (20)

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 

Database Presentation

  • 1.
  • 3. -::Scheme of Presentation::- • Database Normalization (Intro) • Data Anomalies and causes • History/Overview • Quick review to DBMS Keys • All Forms of Normalization • Conclusion • References • Q & A
  • 4. -::Database Normalization::- • The main goal of Database Normalization is to restructure the logical data model of a database to: • Eliminate redundancy (Reduced memory usage ) • Organize data efficiently • Allows faster access (dependencies make sense) • Reduce the potential for data anomalies.
  • 5. -::Data Anomalies::- • Data anomalies are inconsistencies in the data stored in a database as a result of an operation such as update, insertion, and/or deletion. • Such inconsistencies may arise when have a particular record stored in multiple locations and not all of the copies are updated. • We can prevent such anomalies by implementing 7 different level of normalization called Normal Forms (NF) • We’ll look at all of them briefly. 
  • 6. -::Brief History/Overview::- • Database Normalization was first proposed by Edgar F. Codd. • In order to do normalization we must know what the requirements are for each of the each Normal Forms that we’ll go over. • One of the key requirements to remember is that Normal Forms are progressive. That is, in order to have 3rd NF we must have 2nd NF and in order to have 2nd NF we must have 1st NF.
  • 7. -::(I) Super Key::- • (I) Super Key – An attribute or a combination of attribute that is used to identify the records uniquely is known as Super Key. A table can have many Super Keys. E.g. of Super Key 1 ID 2 ID, Name 3 ID, Address 4 ID, Department_ID 5 ID, Salary 6 Name, Address 7 Name, Address, Department_ID ………… So on as any combination which can identify the records uniquely will be a Super Key.
  • 8. -::(II) Candidate Key::- • (II) Candidate Key – It can be defined as minimal Super Key or irreducible Super Key. • E.g. of Candidate Key 1 Code 2 Name, Address
  • 9. -::(III) Primary Key::- • (III) Primary Key – A Candidate Key that is used by the database designer for unique identification of record Primary Key. A Primary Key can consist of one attribute of a table. E.g. of Primary Key - Database designer can use one of the Candidate Key as a Primary Key. In this case we have “Code” and “Name, Address” as Candidate Key, we will consider “Code” Key as a Primary Key.
  • 10. -::(IV) Foreign Key::- • (IV) Foreign Key – A foreign key is an attribute or combination of attribute in one base table that points to the candidate key (generally it is the primary key) of another table. The purpose of the foreign key is to ensure referential integrity of the data i.e. only values that are supposed to appear in the database are permitted. E.g. of Foreign Key – Such as if we have two tables one for employee and 2nd for Manager, the key that relates each other is called Foreign Key.
  • 11. -::(V) Alternate Key::- • (VI) Alternate Key – Alternate Key can be any of the Candidate Keys except for the Primary Key. E.g. of Alternate Key is “Name, Address” as it is the only other Candidate Key which is not a Primary Key.
  • 12. -::(VI) Secondary Key::- • (VII) Secondary Key – Is used for Identification of Rows but not usually Unique, We can have multiple Secondary Key per table. E.g. of Secondary Key can be Name, Address, Salary, Department_ID etc. as they can identify the records but they might not be unique.
  • 13. -::1st Normal Form::- -::The Requirements::- • First normal form (INF) is now considered to be part of the formal definition of a relation in the basic (flat) relational model;12 historically, it was defined to disallow multivalued attributes, composite attributes, and their combinations. It states that the domain of an attribute must include only atomic (simple, indivisible) values and that the value of any attribute in a tuple must be a single value from the domain of that attribute. Hence, INF disallows having a set of values, a tuple of values, or a combination of both as an attribute value for a single tuple.
  • 14.
  • 15. • Remove the attribute DLOCATIONS that violates 1NF and place it in a separate relation DEPT_LOCATIONS along with the primary key DNUMBER of DEPARTMENT. The primary key of this relation is the combination {DNUMBER, DLOCATION}, A distinct tuple in DEPT_LOCATIONS exists for each location of a department. This decomposes the non-1NF relation into two 1NFrelations.
  • 16. -::2nd Normal Form::- -::The Requirements::- • Second normal form (2NF) is based on the concept of full functional dependency. A functional dependency X -7 Y is a full functional dependency if removal of any attribute A from X means that the dependency does not hold any more; that is, for any attribute A E X, (X - {A}) does not functionally determine Y.A functional dependency X -7 Y is a partial dependency if some attribute A E X can be removed from X and the dependency still holds; that is, for some A E X, (X - {A}) -7 Y.
  • 17.
  • 18. • Definition: A relation schema R is in second normal form (2NF) if every nonprime attribute A in R is not partially dependent on any key of R.
  • 19. -::3rd Normal Form::- -::The Requirements::- • Third normal form (3NF) is based on the concept of transitive dependency. A functional dependency X -> Y in a relation schema R is a transitive dependency if there is a set of attributes Z that is neither a candidate key nor a subset of any key of R, and both X -> Z and Z->Y hold.
  • 20. Definition: A relation schema R is in third normal form (3NF) if, whenever a nontrivial functional dependency X ->A holds in R, either (a) X is a superkey of R, or (b) A is a prime attribute of R.
  • 21.
  • 22. -::Boyce-Codd Normal Form::- Definition. A relation schema R is in BCNF if whenever a nontrivial functionaldependency X-> A holds in R, when X is a superkey of R.
  • 23.
  • 24. -::Conclusion::- • We have seen how Database Normalization can decrease redundancy, increase efficiency and reduce anomalies by implementing three of seven different levels of normalization called Normal Forms. The first three NF’s are usually sufficient for most small to medium size applications.
  • 25. -::References::- • Hillyer Mike, MySQL AB. An Introduction to Database Normalization, http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html, accessed October 17, 2006. • Microsoft. Description of the database normalization basics, http://support.microsoft.com/kb/283878 , accessed October 17, 2006. • Wikipedia. Database Normalization. http://en.wikipedia.org/wiki/Database_normalization.html , accessed October 17, 2006.