SlideShare a Scribd company logo
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.

More Related Content

What's hot

Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
Arun Sharma
 
functional dependencies with example
functional dependencies with examplefunctional dependencies with example
functional dependencies with example
Siddhi Viradiya
 
Dbms 4NF & 5NF
Dbms 4NF & 5NFDbms 4NF & 5NF
Dbms 4NF & 5NF
Soham Kansodaria
 
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 CSDL
phananhvu
 
Normalization of Data Base
Normalization of Data BaseNormalization of Data Base
Normalization of Data Base
Ravinder Kamboj
 
Fd & Normalization - Database Management System
Fd & Normalization - Database Management SystemFd & Normalization - Database Management System
Fd & Normalization - Database Management System
Drishti Bhalla
 
Database Management Systems 4 - Normalization
Database Management Systems 4 - NormalizationDatabase Management Systems 4 - Normalization
Database Management Systems 4 - Normalization
Nickkisha Farrell
 
Normalization in a Database
Normalization in a DatabaseNormalization in a Database
Normalization in a Database
Bishrul 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 data
Milind Patil
 
Advanced Normalization
Advanced NormalizationAdvanced Normalization
Advanced Normalization
Abdullah Khosa
 
Normalization by Ashwin and Tanmay
Normalization by Ashwin and TanmayNormalization by Ashwin and Tanmay
Normalization by Ashwin and Tanmay
Ashwin 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 3NF
ijdms
 
C Slides
C SlidesC 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
Rai University
 
Kumar lav
Kumar lavKumar lav
Kumar lav
kumar Lav
 
Open Gurukul Language PL/SQL
Open Gurukul Language PL/SQLOpen Gurukul Language PL/SQL
Open Gurukul Language PL/SQL
Open Gurukul
 
CPU : Structures And Unions
CPU : Structures And UnionsCPU : Structures And Unions
CPU : Structures And Unions
Dhrumil Patel
 
C Structures And Unions
C  Structures And  UnionsC  Structures And  Unions
C Structures And Unions
Ram Sagar Mourya
 

What's hot (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
 

Similar to Database Presentation

Normalisation
NormalisationNormalisation
Normalisation
Soumyajit Dutta
 
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
Dave Stokes
 
chap 10 dbms.pptx
chap 10 dbms.pptxchap 10 dbms.pptx
chap 10 dbms.pptx
arjun431527
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
Skillwise Group
 
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
TamiratDejene1
 
Unit 04 dbms
Unit 04 dbmsUnit 04 dbms
Unit 04 dbms
anuragmbst
 
Year 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st TermYear 11 DATA PROCESSING 1st Term
Year 11 DATA PROCESSING 1st Term
Isaac-Joseph Olanrewaju
 
Relational database design
Relational database designRelational database design
Relational database design
SURBHI SAROHA
 
chapter_8.pptx
chapter_8.pptxchapter_8.pptx
chapter_8.pptx
InduVerma40
 
NMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.pptNMEC RD_UNIT 1.ppt
NMEC RD_UNIT 1.ppt
IswaryaPurushothaman1
 
Introduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQLIntroduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQL
Murageppa-QA
 
Normalization
NormalizationNormalization
Normalization
Sakshi Jaiswal
 
Design dbms
Design dbmsDesign dbms
Design dbms
IIITA
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Edward Blurock
 
Ism normalization pine valley 2012
Ism normalization pine valley 2012Ism normalization pine valley 2012
Ism normalization pine valley 2012
Akshit R Shah
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
Infinity Tech Solutions
 
Unit v
Unit vUnit v
Final exam in advance dbms
Final exam in advance dbmsFinal exam in advance dbms
Final exam in advance dbms
Md. Mashiur Rahman
 
Database normalization
Database normalizationDatabase normalization
Database normalization
Vaibhav Kathuria
 
DATABASE DESIGN.pptx
DATABASE DESIGN.pptxDATABASE DESIGN.pptx
DATABASE DESIGN.pptx
SaranCreations
 

Similar to 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
 

More from Malik Ghulam Murtza

Introduction to Graph in general life
Introduction to Graph in general lifeIntroduction to Graph in general life
Introduction to Graph in general life
Malik Ghulam Murtza
 
Computer Graphics Basics
Computer Graphics BasicsComputer Graphics Basics
Computer Graphics Basics
Malik Ghulam Murtza
 
Assembly Language Programming Basics
Assembly Language Programming BasicsAssembly Language Programming Basics
Assembly Language Programming Basics
Malik Ghulam Murtza
 
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 ?
Malik Ghulam Murtza
 
Pendulum clocks
Pendulum clocksPendulum clocks
Pendulum clocks
Malik Ghulam Murtza
 
Android orientation
Android orientationAndroid orientation
Android orientation
Malik Ghulam Murtza
 
Role model for younger ones
Role model for younger onesRole model for younger ones
Role model for younger ones
Malik Ghulam Murtza
 
Leadership vs Manager Report Lies
Leadership vs Manager Report LiesLeadership vs Manager Report Lies
Leadership vs Manager Report Lies
Malik Ghulam Murtza
 
Object Oriented Programming Basics
Object Oriented Programming BasicsObject Oriented Programming Basics
Object Oriented Programming Basics
Malik Ghulam Murtza
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
Malik Ghulam Murtza
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
Malik Ghulam Murtza
 
Tap2 Eat FYP presentation
Tap2 Eat FYP presentationTap2 Eat FYP presentation
Tap2 Eat FYP presentation
Malik Ghulam Murtza
 
Leadership (7 leadership lies) presentation
Leadership (7 leadership lies) presentationLeadership (7 leadership lies) presentation
Leadership (7 leadership lies) presentation
Malik Ghulam Murtza
 

More from 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
 

Recently uploaded

Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
g4dpvqap0
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Fernanda Palhano
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 

Recently uploaded (20)

Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 

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.