SlideShare une entreprise Scribd logo
1  sur  31
PRESENTSTION
     ON
NORMALIZATION

    Presented By:-
          Sanjeev kumar
          Akhilesh shukla
          Annuraj singh
          Imran khan
Normalization
           Normalization theory is based on the
            observation that relations with certain
            properties are more effective in
            inserting, updating and deleting data
            than other sets of relations containing
            the same data

           Normalization is a multi-step process
            beginning with an “unnormalized”
            relation
IS 257 – Fall 2006
Normal Forms
         First Normal Form (1NF)
         Second Normal Form (2NF)
         Third Normal Form (3NF)
         Boyce-Codd Normal Form (BCNF)
         Fourth Normal Form (4NF)
         Fifth Normal Form (5NF)




IS 257 – Fall 2006
Normalization

                                      Functional
                                      dependency
 No transitive
                                      of nonkey
 dependency
                                      attributes on
 between
                                      the primary
 nonkey
 attributes
                           Boyce-     key - Atomic
                           Codd and   values only
                           Higher
All                                   Full
determinants                          Functional
are candidate                         dependency
keys - Single                         of nonkey
multivalued                           attributes on
dependency                            the primary
                                      key



      IS 257 – Fall 2006
Unnormalized Relations
         First step in normalization is to convert
          the data into a two-dimensional table
         In unnormalized relations data can
          repeat within a column




IS 257 – Fall 2006
Types of anomalies
   Redundancy
    ◦ Repeat info unnecessarily in several tuples

   Update anomalies:
    ◦ Change info in one tuple but not in another

   Deletion anomalies:
    ◦ Delete some values & lose other values too

   Insert anomalies:
    ◦ Inserting row means having to insert other, separate
      info / null-ing it out

                                                    6
First Normal Form
           To move to First Normal Form a
            relation must contain only atomic
            values at each row and column.
             ◦ No repeating groups
             ◦ A column or set of columns is called a
               Candidate Key when its values can
               uniquely identify the row in the relation.




IS 257 – Fall 2006
Second Normal Form
           A relation is said to be in Second
            Normal Form when every nonkey
            attribute is fully functionally
            dependent on the primary key.
             ◦ That is, every nonkey attribute needs the
               full primary key for unique identification




IS 257 – Fall 2006
Third Normal Form
           A relation is said to be in Third Normal Form
            if there is no transitive functional
            dependency between nonkey attributes
             ◦ When one nonkey attribute can be determined
               with one or more nonkey attributes there is said
               to be a transitive functional dependency.
           The side effect column in the Surgery table
            is determined by the drug administered
             ◦ Side effect is transitively functionally dependent
               on drug so Surgery is not 3NF


IS 257 – Fall 2006
Boyce-Codd Normal Form
         Most 3NF relations are also BCNF
          relations.
         A 3NF relation is NOT in BCNF if:
             ◦ Candidate keys in the relation are
               composite keys (they are not single
               attributes)
             ◦ There is more than one candidate key in
               the relation, and
             ◦ The keys are not disjoint, that is, some
               attributes in the keys are common
IS 257 – Fall 2006
Fourth Normal Form
         Any relation is in Fourth Normal Form
          if it is BCNF and any multivalued
          dependencies are trivial
         Eliminate non-trivial multivalued
          dependencies by projecting into
          simpler tables




IS 257 – Fall 2006
Fifth Normal Form
         A relation is in 5NF if every join
          dependency in the relation is implied
          by the keys of the relation
         Implies that relations that have been
          decomposed in previous NF can be
          recombined via natural joins to
          recreate the original relation.



IS 257 – Fall 2006
Dependencies
   Dependency theory is a subfield of
    database theory which studies implication
    and optimization problems related to logical
    constraints, commonly called dependencies,
    on databases. The best known class of such
    dependencies are functional dependencies,
    which form the foundation of keys on
    database relations. Another important class
    of dependencies are the multivalued
    dependencies.         A key algorithm in
    dependency theory is the Chase, and much
    of the theory is devoted to its study.
                        
Functional Dependence
Employee (1NF)
   emp_no    name            dept_no   dept_name   skills
   1         Kevin Jacobs    201       R&D         C
   1         Kevin Jacobs    201       R&D         Perl
   1         Kevin Jacobs    201       R&D         Java
   2         Barbara Jones   224       IT          Linux
   2         Barbara Jones   224       IT          Mac
   3         Jake Rivera     201       R&D         DB2
   3         Jake Rivera     201       R&D         Oracle
   3         Jake Rivera     201       R&D         Java


Name, dept_no, and dept_name are functionally dependent on
emp_no. (emp_no -> name, dept_no, dept_name)

Skills is not functionally dependent on emp_no since it is not
unique to each emp_no.
Transitive Dependence
        Employee (2NF)
       emp_no   name            dept_no   dept_name
       1        Kevin Jacobs    201       R&D
       2        Barbara Jones   224       IT
       3        Jake Rivera     201       R&D




Dept_no and dept_name are functionally dependent
on emp_no however, department can be considered
a separate entity.
Entity - Relationship Model
A logical design method which emphasizes
simplicity and readability.

•Basic objects of the model are:
  •Entities
  •Relationships
  •Attributes
Entities
Data objects detailed by the information in
the database.
  •Denoted by rectangles in the model.




 Employee                    Department
Attributes
Characteristics of entities or relationships.

  •Denoted by ellipses in the model.




Employee                     Department


Name        SSN             Name       Budget
Relationships

  Represent associations between entities.

       •Denoted by diamonds in the model.



Employee                  works in          Department


Name        SSN           Start date        Name   Budget
Relationship Connectivity
Constraints on the mapping of the associated
entities in the relationship.
  •Denoted by variables between the related entities.
  •Generally, values for connectivity are expressed as “one” or
  “many”
                     N                     1
  Employee                    work             Department


 Name         SSN            Start date        Name        Budget
Connectivity
                  one-to-one
             1                  1
Department            has           Manager

                  one-to-many
             1                  N
Department            has           Project

                 many-to-many
             M                  N
Employee            works on        Project
Logical Design to Physical
 Design
Creating relational SQL schemas from
entity-relationship models.
  •Transform each entity into a table with the key
  and its attributes.
  •Transform each relationship as either a
  relationship table (many-to-many) or a “foreign
  key” (one-to-many and many-to-many).
Entity tables
 Transform each entity into a table with a key
 and its attributes.

                          create table
                    employee
Employee                  (emp_no number,
                          name varchar2(256),
                          ssn number,
                          primary key
                    (emp_no));
Name       SSN
Foreign Keys
Transform each one-to-one or one-to-many
relationship as a “foreign key”.
  •Foreign key is a reference in the child (many) table to the
  primary key of the parent (one) table.

                create table department
Departme                  (dept_no number,
                          name varchar2(50),
nt 1                      primary key (dept_no));
                  create table employee
  has
                            (emp_no number,
                            dept_no number,
    N                       name varchar2(256),
                            ssn number,
Employee                    primary key (emp_no),
                            foreign key (dept_no) references
                  department);
Foreign Key
Department                          Accounting has 1 employee:
dept_no   Name                             Brian Burnett
1         Accounting
2         Human Resources
                                    Human Resources has 2
3         IT                        employees:
                                           Nora Edwards
                                           Ben Smith
Employee                            IT has 3 employees:
emp_no    dept_no   Name                   Ajay Patel
1         2         Nora Edwards           John O’Leary
2         3         Ajay Patel             Julia Lenin
3         2         Ben Smith
4         1         Brian Burnett
5         3         John O'Leary
6         3         Julia Lenin
Many-to-Many tables
      Transform each many-to-many relationship as a
      table.
             •The relationship table will contain the foreign keys to the
             related entities as well as any relationship attributes.

                              create table proj_has_emp
             Project                   (proj_no number,
                N
                                       emp_no number,
                                       start_date date,
                                       primary key (proj_no, emp_no),
Start date     has
                                       foreign key (proj_no) references project
                                       foreign key (emp_no) references
                              employee);
                 M

             Employee
E-R Diagram
DFD
DFD
DFD                                                         Weekly
                                    Employee                transactions
                                    no, hours
 employee        Employee           worked,
                 No, hours          batch control           Employee
                 worked             totals                  no, hours
                         Batch                              worked                  employee
                         time
                         sheets                                  Name, pay
                                                                 rate, tax code,
                                    Verify/valida                etc.
            Invalid                 te data                                        Employee
            employee data,                                                         no, hours
            batch control                                   Prepare                worked
            totals                Employee no,              Payroll            Each employee:
                                  hours worked                                 Employee
  Error report                                                                 nos, pay, tax, etc
                                     Employee                                  Totals: pay, tax,etc
                                     no, hours                    Employee
                                                                                      Print
                                     worked                       no, pay,
                                                                                      paychequ
                                                                  tax,etc.
                                                                                      e&
                 Valid weekly                                                         payslips
                 transactions                           Print
                                                        payroll
                                                        summary             Each employee:
                                                                            Employee nos,
                                             Employee
                                                                            pay, tax, etc
                                             no, pay,
                                                                            Totals: pay, tax,etc
                                             tax,etc.

                                                 Accounts                                employ
                                                 dept                                    ee
Normalization

Contenu connexe

Tendances

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraintsmadhav bansal
 
Soa Primer
Soa PrimerSoa Primer
Soa Primervavasthi
 
Payroll Management System SRS
Payroll Management System SRSPayroll Management System SRS
Payroll Management System SRSShubham Modi
 
School Management System ppt
School Management System pptSchool Management System ppt
School Management System pptMohsin Ali
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagramssadique_ghitm
 
Payroll Management System
Payroll Management SystemPayroll Management System
Payroll Management SystemRohit Bhabal
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Oum Saokosal
 
Human resources management and planning
Human resources management and planningHuman resources management and planning
Human resources management and planningSOURABH KUMAR
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagramMayank Jain
 
library management system in SQL
library management system in SQLlibrary management system in SQL
library management system in SQLfarouq umar
 

Tendances (20)

2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
Soa Primer
Soa PrimerSoa Primer
Soa Primer
 
RDBMS
RDBMSRDBMS
RDBMS
 
Payroll Management System SRS
Payroll Management System SRSPayroll Management System SRS
Payroll Management System SRS
 
School Management System ppt
School Management System pptSchool Management System ppt
School Management System ppt
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Payroll Management System
Payroll Management SystemPayroll Management System
Payroll Management System
 
Relational databases
Relational databasesRelational databases
Relational databases
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)Database Concept - Normalization (1NF, 2NF, 3NF)
Database Concept - Normalization (1NF, 2NF, 3NF)
 
Data independence
Data independenceData independence
Data independence
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Human resources management and planning
Human resources management and planningHuman resources management and planning
Human resources management and planning
 
Enhanced E-R diagram
Enhanced E-R diagramEnhanced E-R diagram
Enhanced E-R diagram
 
Database Normalization.docx
Database Normalization.docxDatabase Normalization.docx
Database Normalization.docx
 
Dba
DbaDba
Dba
 
Enhanced ER(database)
Enhanced ER(database)Enhanced ER(database)
Enhanced ER(database)
 
library management system in SQL
library management system in SQLlibrary management system in SQL
library management system in SQL
 

En vedette

Database Management System
Database Management System Database Management System
Database Management System FellowBuddy.com
 
Payroll Management System
Payroll Management SystemPayroll Management System
Payroll Management SystemDheeraj Jha
 
Thesis about Computerized Payroll System for Barangay Hall, Dita
Thesis about Computerized Payroll System for Barangay Hall, DitaThesis about Computerized Payroll System for Barangay Hall, Dita
Thesis about Computerized Payroll System for Barangay Hall, DitaAcel Carl David O, Dolindo
 
Employee Management System
Employee Management SystemEmployee Management System
Employee Management Systemvivek shah
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)tameemyousaf
 
A computerized payroll system for the barangay hall
A computerized payroll system for the barangay hallA computerized payroll system for the barangay hall
A computerized payroll system for the barangay hallAcel Carl David O, Dolindo
 
Dbms presentation of Automatic Car parking System
Dbms presentation of Automatic Car parking SystemDbms presentation of Automatic Car parking System
Dbms presentation of Automatic Car parking Systemsumi haque
 
Documentation Hotel Management System
Documentation Hotel Management SystemDocumentation Hotel Management System
Documentation Hotel Management SystemSalman Dayal
 
Project Management System
Project Management SystemProject Management System
Project Management SystemDivyen Patel
 
Payroll management system
Payroll management systemPayroll management system
Payroll management systemmubshir rehman
 
Payroll system
Payroll systemPayroll system
Payroll systemWirat Mojo
 
Employee management system1
Employee management system1Employee management system1
Employee management system1supriya
 
Entity relationship diagram - Concept on normalization
Entity relationship diagram - Concept on normalizationEntity relationship diagram - Concept on normalization
Entity relationship diagram - Concept on normalizationSatya Pal
 
Computerized payroll system
Computerized payroll systemComputerized payroll system
Computerized payroll systemFrancis Genavia
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
SRS FOR CHAT APPLICATION
SRS FOR CHAT APPLICATIONSRS FOR CHAT APPLICATION
SRS FOR CHAT APPLICATIONAtul Kushwaha
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramShakila Mahjabin
 

En vedette (20)

Database Management System
Database Management System Database Management System
Database Management System
 
Payroll Management System
Payroll Management SystemPayroll Management System
Payroll Management System
 
Payroll
PayrollPayroll
Payroll
 
Thesis about Computerized Payroll System for Barangay Hall, Dita
Thesis about Computerized Payroll System for Barangay Hall, DitaThesis about Computerized Payroll System for Barangay Hall, Dita
Thesis about Computerized Payroll System for Barangay Hall, Dita
 
Payroll management
Payroll   managementPayroll   management
Payroll management
 
Payroll management Ppt
Payroll management PptPayroll management Ppt
Payroll management Ppt
 
Employee Management System
Employee Management SystemEmployee Management System
Employee Management System
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
A computerized payroll system for the barangay hall
A computerized payroll system for the barangay hallA computerized payroll system for the barangay hall
A computerized payroll system for the barangay hall
 
Dbms presentation of Automatic Car parking System
Dbms presentation of Automatic Car parking SystemDbms presentation of Automatic Car parking System
Dbms presentation of Automatic Car parking System
 
Documentation Hotel Management System
Documentation Hotel Management SystemDocumentation Hotel Management System
Documentation Hotel Management System
 
Project Management System
Project Management SystemProject Management System
Project Management System
 
Payroll management system
Payroll management systemPayroll management system
Payroll management system
 
Payroll system
Payroll systemPayroll system
Payroll system
 
Employee management system1
Employee management system1Employee management system1
Employee management system1
 
Entity relationship diagram - Concept on normalization
Entity relationship diagram - Concept on normalizationEntity relationship diagram - Concept on normalization
Entity relationship diagram - Concept on normalization
 
Computerized payroll system
Computerized payroll systemComputerized payroll system
Computerized payroll system
 
Data base management system
Data base management systemData base management system
Data base management system
 
SRS FOR CHAT APPLICATION
SRS FOR CHAT APPLICATIONSRS FOR CHAT APPLICATION
SRS FOR CHAT APPLICATION
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 

Similaire à Normalization

Database normalization
Database normalizationDatabase normalization
Database normalizationEdward Blurock
 
Penormalan/Normalization
Penormalan/NormalizationPenormalan/Normalization
Penormalan/NormalizationJoan Ador
 
Ism normalization pine valley 2012
Ism normalization pine valley 2012Ism normalization pine valley 2012
Ism normalization pine valley 2012Akshit R Shah
 
Theory of dependencies in relational database
Theory of dependencies in relational databaseTheory of dependencies in relational database
Theory of dependencies in relational databaseJyoti Ranjan Pattnaik
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelNeil Neelesh
 
chapter 4-Functional Dependency and Normilization.pdf
chapter 4-Functional Dependency and Normilization.pdfchapter 4-Functional Dependency and Normilization.pdf
chapter 4-Functional Dependency and Normilization.pdfMisganawAbeje1
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptxkshipra sony
 
Unit 4 Design_a system analysis and design Designing Database.pdf
Unit 4 Design_a system analysis and design  Designing Database.pdfUnit 4 Design_a system analysis and design  Designing Database.pdf
Unit 4 Design_a system analysis and design Designing Database.pdfSuryaBasnet3
 
Database Systems - Normalization of Relations(Chapter 4/3)
Database Systems - Normalization of Relations(Chapter 4/3)Database Systems - Normalization of Relations(Chapter 4/3)
Database Systems - Normalization of Relations(Chapter 4/3)Vidyasagar Mundroy
 
PostgreSQL Tutorial for Beginners | Edureka
PostgreSQL Tutorial for Beginners | EdurekaPostgreSQL Tutorial for Beginners | Edureka
PostgreSQL Tutorial for Beginners | EdurekaEdureka!
 

Similaire à Normalization (20)

Database normalization
Database normalizationDatabase normalization
Database normalization
 
Normalization
NormalizationNormalization
Normalization
 
Normalisation
NormalisationNormalisation
Normalisation
 
Penormalan/Normalization
Penormalan/NormalizationPenormalan/Normalization
Penormalan/Normalization
 
Ism normalization pine valley 2012
Ism normalization pine valley 2012Ism normalization pine valley 2012
Ism normalization pine valley 2012
 
123
123123
123
 
Theory of dependencies in relational database
Theory of dependencies in relational databaseTheory of dependencies in relational database
Theory of dependencies in relational database
 
Normalisation revision
Normalisation revisionNormalisation revision
Normalisation revision
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
chapter 4-Functional Dependency and Normilization.pdf
chapter 4-Functional Dependency and Normilization.pdfchapter 4-Functional Dependency and Normilization.pdf
chapter 4-Functional Dependency and Normilization.pdf
 
Database Presentation
Database PresentationDatabase Presentation
Database Presentation
 
Presentation on Normalization.pptx
Presentation on Normalization.pptxPresentation on Normalization.pptx
Presentation on Normalization.pptx
 
Chap05 c
Chap05 cChap05 c
Chap05 c
 
Unit 02 dbms
Unit 02 dbmsUnit 02 dbms
Unit 02 dbms
 
Normalization
NormalizationNormalization
Normalization
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Unit 4 Design_a system analysis and design Designing Database.pdf
Unit 4 Design_a system analysis and design  Designing Database.pdfUnit 4 Design_a system analysis and design  Designing Database.pdf
Unit 4 Design_a system analysis and design Designing Database.pdf
 
Database Systems - Normalization of Relations(Chapter 4/3)
Database Systems - Normalization of Relations(Chapter 4/3)Database Systems - Normalization of Relations(Chapter 4/3)
Database Systems - Normalization of Relations(Chapter 4/3)
 
chapter_8.pptx
chapter_8.pptxchapter_8.pptx
chapter_8.pptx
 
PostgreSQL Tutorial for Beginners | Edureka
PostgreSQL Tutorial for Beginners | EdurekaPostgreSQL Tutorial for Beginners | Edureka
PostgreSQL Tutorial for Beginners | Edureka
 

Dernier

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 

Dernier (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Normalization

  • 1. PRESENTSTION ON NORMALIZATION Presented By:- Sanjeev kumar Akhilesh shukla Annuraj singh Imran khan
  • 2. Normalization  Normalization theory is based on the observation that relations with certain properties are more effective in inserting, updating and deleting data than other sets of relations containing the same data  Normalization is a multi-step process beginning with an “unnormalized” relation IS 257 – Fall 2006
  • 3. Normal Forms  First Normal Form (1NF)  Second Normal Form (2NF)  Third Normal Form (3NF)  Boyce-Codd Normal Form (BCNF)  Fourth Normal Form (4NF)  Fifth Normal Form (5NF) IS 257 – Fall 2006
  • 4. Normalization Functional dependency No transitive of nonkey dependency attributes on between the primary nonkey attributes Boyce- key - Atomic Codd and values only Higher All Full determinants Functional are candidate dependency keys - Single of nonkey multivalued attributes on dependency the primary key IS 257 – Fall 2006
  • 5. Unnormalized Relations  First step in normalization is to convert the data into a two-dimensional table  In unnormalized relations data can repeat within a column IS 257 – Fall 2006
  • 6. Types of anomalies  Redundancy ◦ Repeat info unnecessarily in several tuples  Update anomalies: ◦ Change info in one tuple but not in another  Deletion anomalies: ◦ Delete some values & lose other values too  Insert anomalies: ◦ Inserting row means having to insert other, separate info / null-ing it out 6
  • 7. First Normal Form  To move to First Normal Form a relation must contain only atomic values at each row and column. ◦ No repeating groups ◦ A column or set of columns is called a Candidate Key when its values can uniquely identify the row in the relation. IS 257 – Fall 2006
  • 8. Second Normal Form  A relation is said to be in Second Normal Form when every nonkey attribute is fully functionally dependent on the primary key. ◦ That is, every nonkey attribute needs the full primary key for unique identification IS 257 – Fall 2006
  • 9. Third Normal Form  A relation is said to be in Third Normal Form if there is no transitive functional dependency between nonkey attributes ◦ When one nonkey attribute can be determined with one or more nonkey attributes there is said to be a transitive functional dependency.  The side effect column in the Surgery table is determined by the drug administered ◦ Side effect is transitively functionally dependent on drug so Surgery is not 3NF IS 257 – Fall 2006
  • 10. Boyce-Codd Normal Form  Most 3NF relations are also BCNF relations.  A 3NF relation is NOT in BCNF if: ◦ Candidate keys in the relation are composite keys (they are not single attributes) ◦ There is more than one candidate key in the relation, and ◦ The keys are not disjoint, that is, some attributes in the keys are common IS 257 – Fall 2006
  • 11. Fourth Normal Form  Any relation is in Fourth Normal Form if it is BCNF and any multivalued dependencies are trivial  Eliminate non-trivial multivalued dependencies by projecting into simpler tables IS 257 – Fall 2006
  • 12. Fifth Normal Form  A relation is in 5NF if every join dependency in the relation is implied by the keys of the relation  Implies that relations that have been decomposed in previous NF can be recombined via natural joins to recreate the original relation. IS 257 – Fall 2006
  • 13. Dependencies  Dependency theory is a subfield of database theory which studies implication and optimization problems related to logical constraints, commonly called dependencies, on databases. The best known class of such dependencies are functional dependencies, which form the foundation of keys on database relations. Another important class of dependencies are the multivalued dependencies. A key algorithm in dependency theory is the Chase, and much of the theory is devoted to its study. 
  • 14. Functional Dependence Employee (1NF) emp_no name dept_no dept_name skills 1 Kevin Jacobs 201 R&D C 1 Kevin Jacobs 201 R&D Perl 1 Kevin Jacobs 201 R&D Java 2 Barbara Jones 224 IT Linux 2 Barbara Jones 224 IT Mac 3 Jake Rivera 201 R&D DB2 3 Jake Rivera 201 R&D Oracle 3 Jake Rivera 201 R&D Java Name, dept_no, and dept_name are functionally dependent on emp_no. (emp_no -> name, dept_no, dept_name) Skills is not functionally dependent on emp_no since it is not unique to each emp_no.
  • 15. Transitive Dependence Employee (2NF) emp_no name dept_no dept_name 1 Kevin Jacobs 201 R&D 2 Barbara Jones 224 IT 3 Jake Rivera 201 R&D Dept_no and dept_name are functionally dependent on emp_no however, department can be considered a separate entity.
  • 16. Entity - Relationship Model A logical design method which emphasizes simplicity and readability. •Basic objects of the model are: •Entities •Relationships •Attributes
  • 17. Entities Data objects detailed by the information in the database. •Denoted by rectangles in the model. Employee Department
  • 18. Attributes Characteristics of entities or relationships. •Denoted by ellipses in the model. Employee Department Name SSN Name Budget
  • 19. Relationships Represent associations between entities. •Denoted by diamonds in the model. Employee works in Department Name SSN Start date Name Budget
  • 20. Relationship Connectivity Constraints on the mapping of the associated entities in the relationship. •Denoted by variables between the related entities. •Generally, values for connectivity are expressed as “one” or “many” N 1 Employee work Department Name SSN Start date Name Budget
  • 21. Connectivity one-to-one 1 1 Department has Manager one-to-many 1 N Department has Project many-to-many M N Employee works on Project
  • 22. Logical Design to Physical Design Creating relational SQL schemas from entity-relationship models. •Transform each entity into a table with the key and its attributes. •Transform each relationship as either a relationship table (many-to-many) or a “foreign key” (one-to-many and many-to-many).
  • 23. Entity tables Transform each entity into a table with a key and its attributes. create table employee Employee (emp_no number, name varchar2(256), ssn number, primary key (emp_no)); Name SSN
  • 24. Foreign Keys Transform each one-to-one or one-to-many relationship as a “foreign key”. •Foreign key is a reference in the child (many) table to the primary key of the parent (one) table. create table department Departme (dept_no number, name varchar2(50), nt 1 primary key (dept_no)); create table employee has (emp_no number, dept_no number, N name varchar2(256), ssn number, Employee primary key (emp_no), foreign key (dept_no) references department);
  • 25. Foreign Key Department Accounting has 1 employee: dept_no Name Brian Burnett 1 Accounting 2 Human Resources Human Resources has 2 3 IT employees: Nora Edwards Ben Smith Employee IT has 3 employees: emp_no dept_no Name Ajay Patel 1 2 Nora Edwards John O’Leary 2 3 Ajay Patel Julia Lenin 3 2 Ben Smith 4 1 Brian Burnett 5 3 John O'Leary 6 3 Julia Lenin
  • 26. Many-to-Many tables Transform each many-to-many relationship as a table. •The relationship table will contain the foreign keys to the related entities as well as any relationship attributes. create table proj_has_emp Project (proj_no number, N emp_no number, start_date date, primary key (proj_no, emp_no), Start date has foreign key (proj_no) references project foreign key (emp_no) references employee); M Employee
  • 28. DFD
  • 29. DFD
  • 30. DFD Weekly Employee transactions no, hours employee Employee worked, No, hours batch control Employee worked totals no, hours Batch worked employee time sheets Name, pay rate, tax code, Verify/valida etc. Invalid te data Employee employee data, no, hours batch control Prepare worked totals Employee no, Payroll Each employee: hours worked Employee Error report nos, pay, tax, etc Employee Totals: pay, tax,etc no, hours Employee Print worked no, pay, paychequ tax,etc. e& Valid weekly payslips transactions Print payroll summary Each employee: Employee nos, Employee pay, tax, etc no, pay, Totals: pay, tax,etc tax,etc. Accounts employ dept ee