SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Database Management System
NAMHIN
 First Normal Form (1NF)
 Functional Dependency
 Second Normal Form (2NF)
 Third Normal Form (3NF)
NAMHIN 2
NAMHIN
Normalization is a process of organizing the data in database to avoid data
redundancy, insertion anomaly, update anomaly, deletion anomaly and
make it more efficient and error free.
NAMHIN 4
Normalization ensures:
 The database is structured in the best possible way.
 To achieve control over data redundancy.
 To ensure data consistency.
 To ensure tables have a flexible structure.
 To allow data in different tables can be used in complex queries.
NAMHIN 5
NORMALIZA
TION
First normal form(1NF)
Second normal form(2NF)
Third normal form(3NF)
& so on….
NAMHIN 6
NAMHIN
 Place all items that appear in the repeating group in a new table
 Designate a primary key for each new table produced.
 Duplicate in the new table the primary key of the table from which the repeating
group was extracted or vice versa.
NAMHIN 8
Book_Company
Author
Publication
NAMHIN 9
NAMHIN
 A relation is in 2NF if it is in 1NF, and every non-key attribute is fully
dependent on each candidate key.
 2NF (and 3NF) both involve the concepts of key and non-key attributes.
 A key attribute is any attribute that is part of a key;
 Any attribute that is not a key attribute, is a non-key attribute.
NAMHIN 11
LineNum ProdNum QtyInvNum
InvNum, LineNum ProdNum, Qty
InvDate
Since there is a determinant that is not a
candidate key, InvLine is not BCNF
InvLine is not 2NF since there is a partial
dependency of InvDate on InvNum
InvDateInvNum
Qty is the only non-key attribute, and it is
dependent on InvNum
InvLine is only in 1NF
There are two candidate keys.
Consider this InvLine table (in 1NF)
NAMHIN 12
SECOND NORMAL FORM
LineNum ProdNum QtyInvNum InvDate
InvLine
The above relation has redundancies: the invoice date is
repeated on each invoice line.
We can improve the database by decomposing the relation
into two relations:
LineNum ProdNum QtyInvNum
InvDateInvNum
NAMHIN 13
Is the following relation in 2NF.
inv_no line_no prod_no prod_desc qty
NAMHIN 14
NAMHIN
 A relation is in 3NF if the relation is in 1NF and all determinants of non-
key attributes are candidate keys.
 A relation in 3NF will not have any transitive dependencies.
 of non-key attribute on a candidate key through another non-key
attribute.
NAMHIN 16
EmpName, DeptNum, and DeptName are non-key attributes.
DeptNum determines DeptName, a non-key attribute, and
DeptNum is not a candidate key.
EmpNum EmpName DeptNum DeptName
NAMHIN 17
EmpNum EmpName DeptNum DeptName
We correct the situation by decomposing the original relation
into two 3NF relations. Note the decomposition is lossless.
EmpNum EmpName DeptNum DeptNameDeptNum
NAMHIN 18
NAMHIN
We say an attribute, B, has a functional dependency on another attribute, A,
if for any two records, which have the same value for A, then the values for
B in these two records must be the same.
NAMHIN 20
A full functional dependency is a state of database
normalization that equates to the normalization standard of
Second Normal Form (2NF). In brief, this means that it
meets the requirements of First Normal Form (1NF), and
all non-key attributes are fully functionally dependent on
the primary key.
NAMHIN 21
A partial dependency exists when an attribute B is
functionally dependent on an attribute A, and A is a
component of a multipart candidate key.
InvNum LineNum Qty InvDate
Candidate keys: {InvNum, LineNum} InvDate is
partially dependent on {InvNum, LineNum} as
InvNum is a determinant of InvDate and InvNum is
part of a candidate keyNAMHIN 22
Consider attributes A, B, and C, and where
A  B and B  C.
Functional dependencies are transitive, which means that we also
have the functional dependency A  C
We say that C is transitively dependent on A through B.
NAMHIN 23
EmpNum EmpEmail DeptNum DeptNname
EmpNum EmpEmail DeptNum DeptNname
DeptName is transitively dependent on EmpNum via DeptNum
EmpNum  DeptName
EmpNum  DeptNum
DeptNum  DeptName
NAMHIN 24
NAMHIN 25

Weitere ähnliche Inhalte

Was ist angesagt? (20)

Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4Normalization of database_tables_chapter_4
Normalization of database_tables_chapter_4
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Normal forms
Normal formsNormal forms
Normal forms
 
Normalization
NormalizationNormalization
Normalization
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Jai dbms
Jai dbmsJai dbms
Jai dbms
 
Normlaization
NormlaizationNormlaization
Normlaization
 
functional dependencies with example
functional dependencies with examplefunctional dependencies with example
functional dependencies with example
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Bcnf
BcnfBcnf
Bcnf
 
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
 
Database.ppt
Database.pptDatabase.ppt
Database.ppt
 
Chapter-13-solutions
Chapter-13-solutionsChapter-13-solutions
Chapter-13-solutions
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Normalization
NormalizationNormalization
Normalization
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Page 2
Page 2Page 2
Page 2
 

Ähnlich wie Normalization

Penormalan/Normalization
Penormalan/NormalizationPenormalan/Normalization
Penormalan/NormalizationJoan Ador
 
DBMS lecture on Functional Dependency.pdf
DBMS lecture on Functional Dependency.pdfDBMS lecture on Functional Dependency.pdf
DBMS lecture on Functional Dependency.pdfBijayNag1
 
Normalization (1)
Normalization (1)Normalization (1)
Normalization (1)AkifAli18
 
Database Management System( Normalization)
Database Management System( Normalization)Database Management System( Normalization)
Database Management System( Normalization)kiran Patel
 
Normalization(15.09.2010)
Normalization(15.09.2010)Normalization(15.09.2010)
Normalization(15.09.2010)Ravi Shekhar
 
Normalization in relational database management systems
Normalization in relational database management systemsNormalization in relational database management systems
Normalization in relational database management systemsPreethi T G
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data ModelDimara Hakim
 
Lecture No. 21-22.ppt
Lecture No. 21-22.pptLecture No. 21-22.ppt
Lecture No. 21-22.pptAjit Mali
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptxkshipra sony
 
Normalization work as through a series of stages called normal forms .pdf
Normalization work as through a series of stages called normal forms .pdfNormalization work as through a series of stages called normal forms .pdf
Normalization work as through a series of stages called normal forms .pdfdeepaarora22
 

Ähnlich wie Normalization (20)

Penormalan/Normalization
Penormalan/NormalizationPenormalan/Normalization
Penormalan/Normalization
 
DBMS lecture on Functional Dependency.pdf
DBMS lecture on Functional Dependency.pdfDBMS lecture on Functional Dependency.pdf
DBMS lecture on Functional Dependency.pdf
 
Normalization
NormalizationNormalization
Normalization
 
8 normalization (1)
8 normalization (1)8 normalization (1)
8 normalization (1)
 
Normalization (1)
Normalization (1)Normalization (1)
Normalization (1)
 
8 normalization
8 normalization8 normalization
8 normalization
 
18.2.14
18.2.1418.2.14
18.2.14
 
8 Normalization (1).ppt
8 Normalization (1).ppt8 Normalization (1).ppt
8 Normalization (1).ppt
 
8 Normalization.ppt
8 Normalization.ppt8 Normalization.ppt
8 Normalization.ppt
 
Database Management System( Normalization)
Database Management System( Normalization)Database Management System( Normalization)
Database Management System( Normalization)
 
Normalizatrion.ppt
Normalizatrion.pptNormalizatrion.ppt
Normalizatrion.ppt
 
Normalization(15.09.2010)
Normalization(15.09.2010)Normalization(15.09.2010)
Normalization(15.09.2010)
 
Normalization in relational database management systems
Normalization in relational database management systemsNormalization in relational database management systems
Normalization in relational database management systems
 
b - Normalizing a Data Model
b - Normalizing a Data Modelb - Normalizing a Data Model
b - Normalizing a Data Model
 
Lecture No. 21-22.ppt
Lecture No. 21-22.pptLecture No. 21-22.ppt
Lecture No. 21-22.ppt
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptx
 
Database Normalization.pptx
Database Normalization.pptxDatabase Normalization.pptx
Database Normalization.pptx
 
Normalisation
NormalisationNormalisation
Normalisation
 
Normalization
NormalizationNormalization
Normalization
 
Normalization work as through a series of stages called normal forms .pdf
Normalization work as through a series of stages called normal forms .pdfNormalization work as through a series of stages called normal forms .pdf
Normalization work as through a series of stages called normal forms .pdf
 

Mehr von Md. Tanvir Hossain (14)

Automated train
Automated trainAutomated train
Automated train
 
Captcha
CaptchaCaptcha
Captcha
 
Adjusting the accounts
Adjusting the accountsAdjusting the accounts
Adjusting the accounts
 
Segmentation
SegmentationSegmentation
Segmentation
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Application of interpolation in CSE
Application of interpolation in CSEApplication of interpolation in CSE
Application of interpolation in CSE
 
Internet(Internetwork)
Internet(Internetwork)Internet(Internetwork)
Internet(Internetwork)
 
Basic Biocomputing
Basic BiocomputingBasic Biocomputing
Basic Biocomputing
 
Intel core i3 processor
Intel core i3 processorIntel core i3 processor
Intel core i3 processor
 
Satellite communication and it's future
Satellite communication and it's futureSatellite communication and it's future
Satellite communication and it's future
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Java interface
Java interfaceJava interface
Java interface
 
Java exception handling
Java exception handlingJava exception handling
Java exception handling
 

Kürzlich hochgeladen

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
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
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
 
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
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Kürzlich hochgeladen (20)

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...
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
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
 
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.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Normalization

  • 2.  First Normal Form (1NF)  Functional Dependency  Second Normal Form (2NF)  Third Normal Form (3NF) NAMHIN 2
  • 4. Normalization is a process of organizing the data in database to avoid data redundancy, insertion anomaly, update anomaly, deletion anomaly and make it more efficient and error free. NAMHIN 4
  • 5. Normalization ensures:  The database is structured in the best possible way.  To achieve control over data redundancy.  To ensure data consistency.  To ensure tables have a flexible structure.  To allow data in different tables can be used in complex queries. NAMHIN 5
  • 6. NORMALIZA TION First normal form(1NF) Second normal form(2NF) Third normal form(3NF) & so on…. NAMHIN 6
  • 8.  Place all items that appear in the repeating group in a new table  Designate a primary key for each new table produced.  Duplicate in the new table the primary key of the table from which the repeating group was extracted or vice versa. NAMHIN 8
  • 11.  A relation is in 2NF if it is in 1NF, and every non-key attribute is fully dependent on each candidate key.  2NF (and 3NF) both involve the concepts of key and non-key attributes.  A key attribute is any attribute that is part of a key;  Any attribute that is not a key attribute, is a non-key attribute. NAMHIN 11
  • 12. LineNum ProdNum QtyInvNum InvNum, LineNum ProdNum, Qty InvDate Since there is a determinant that is not a candidate key, InvLine is not BCNF InvLine is not 2NF since there is a partial dependency of InvDate on InvNum InvDateInvNum Qty is the only non-key attribute, and it is dependent on InvNum InvLine is only in 1NF There are two candidate keys. Consider this InvLine table (in 1NF) NAMHIN 12
  • 13. SECOND NORMAL FORM LineNum ProdNum QtyInvNum InvDate InvLine The above relation has redundancies: the invoice date is repeated on each invoice line. We can improve the database by decomposing the relation into two relations: LineNum ProdNum QtyInvNum InvDateInvNum NAMHIN 13
  • 14. Is the following relation in 2NF. inv_no line_no prod_no prod_desc qty NAMHIN 14
  • 16.  A relation is in 3NF if the relation is in 1NF and all determinants of non- key attributes are candidate keys.  A relation in 3NF will not have any transitive dependencies.  of non-key attribute on a candidate key through another non-key attribute. NAMHIN 16
  • 17. EmpName, DeptNum, and DeptName are non-key attributes. DeptNum determines DeptName, a non-key attribute, and DeptNum is not a candidate key. EmpNum EmpName DeptNum DeptName NAMHIN 17
  • 18. EmpNum EmpName DeptNum DeptName We correct the situation by decomposing the original relation into two 3NF relations. Note the decomposition is lossless. EmpNum EmpName DeptNum DeptNameDeptNum NAMHIN 18
  • 20. We say an attribute, B, has a functional dependency on another attribute, A, if for any two records, which have the same value for A, then the values for B in these two records must be the same. NAMHIN 20
  • 21. A full functional dependency is a state of database normalization that equates to the normalization standard of Second Normal Form (2NF). In brief, this means that it meets the requirements of First Normal Form (1NF), and all non-key attributes are fully functionally dependent on the primary key. NAMHIN 21
  • 22. A partial dependency exists when an attribute B is functionally dependent on an attribute A, and A is a component of a multipart candidate key. InvNum LineNum Qty InvDate Candidate keys: {InvNum, LineNum} InvDate is partially dependent on {InvNum, LineNum} as InvNum is a determinant of InvDate and InvNum is part of a candidate keyNAMHIN 22
  • 23. Consider attributes A, B, and C, and where A  B and B  C. Functional dependencies are transitive, which means that we also have the functional dependency A  C We say that C is transitively dependent on A through B. NAMHIN 23
  • 24. EmpNum EmpEmail DeptNum DeptNname EmpNum EmpEmail DeptNum DeptNname DeptName is transitively dependent on EmpNum via DeptNum EmpNum  DeptName EmpNum  DeptNum DeptNum  DeptName NAMHIN 24