SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Downloaden Sie, um offline zu lesen
Normalising a database
Create a relational database; with a primary key; and show relationships
Relational databases use the concept of normalisation or
Normal forms to define well-formed tables.

1. Normal Forms (NF)

ü  Rules aimed at eliminating redundancy within the database;
ü  Each table is given a primary key;
ü  Usually results in more tables than would have otherwise been
ü included;
ü  Results in independent tables that can be edited without
ü affecting other tables;
ü  There should be nothing common between any of the tables.
ü  sets out to establish common ground between the tables so
    they can be related;
ü  A field is established that is common to each set of two
    tables;
ü The common field is used to link the two tables.
The use of normalisation ensures that there are no problems
When modifying the database:

    ü  Each table can be edited and manipulated separately;
    ü  Relationships can be established between each table when
    ü data is needed from more than one table.

 Example ~ the school database INF
 •  all fields related to students would become one table: Students
 •  all fields related to teachers would become the second table: Teachers

 The link between Teachers and Students is Class
     ü  A ClassCode filed will be established to allow one table to read the data in
         the other table;
     ü  ClassID may be the primary key of the Students table;
     ü  ClassID, containing the exact same data, may be the foreign key of the
         Teachers table;
     ü  The list of students in the teacher s class can then be accessed through
         the relationship
     ü  Established between the two tables.
When normalising a database you should achieve four goals:

ü  Arranging data into logical groups such that each group describes a small
    part of the whole

ü  Minimizing the amount of duplicated data stored in a database

ü  Building a database in which you can access and manipulate the data
    quickly and efficiently without compromising the integrity of the data storage

ü  Organising the data such that, when you modify it, you make the changes in
    only one place
Normalization is a complex process with many specific rules and
different intensity levels. In its full definition, normalization is the process
of discarding repeating groups, minimizing redundancy,
eliminating composite keys for partial dependency and separating
non-key attributes.

A properly normalised design allows you to:
•  Use storage space efficiently
•  Eliminate redundant data
•  Reduce or eliminate inconsistent data
•  Ease the database maintenance burden


A bad database design usually include:
•  Repetition of information
•  Inability to represent certain information
•  Loss of information
•  Difficulty to maintain information
The Process of Normalisation
While many people find the process of
normalisation quite confusing, this is generally
because the formal definitions tend to be quite
jargon-heavy and the basic concepts become
hidden beneath a murky surface of functional
dependencies, determinants and key attributes.
A very good way of understanding normalisation
is to use an analogy of paragraphs and good
writing.

• Any basic language course teaches the fact that
all good writing uses single-theme paragraphs.
That is, each paragraph should deal solely with a
single theme; a paragraph with more than one
theme should be split into separate paragraphs –
one for each theme
Normalisation uses the same idea: each table
should only contain information related to a
single concept.

HINT:
If it contains more than the table should be split
into a number of smaller, related tables
Initial Schema
Student Borrowing
Family notification of Student Borrowing
Additional Schema
Student School Schema

Weitere ähnliche Inhalte

Was ist angesagt?

Sterling Integrator Map Editor
Sterling Integrator Map EditorSterling Integrator Map Editor
Sterling Integrator Map Editor
Jeyhind M
 
Disponibilidad de datos
Disponibilidad de datosDisponibilidad de datos
Disponibilidad de datos
UTN
 

Was ist angesagt? (20)

Data models
Data modelsData models
Data models
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Sterling Integrator Map Editor
Sterling Integrator Map EditorSterling Integrator Map Editor
Sterling Integrator Map Editor
 
Project Presentation on Data WareHouse
Project Presentation on Data WareHouseProject Presentation on Data WareHouse
Project Presentation on Data WareHouse
 
Types dbms
Types dbmsTypes dbms
Types dbms
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
 
Modelo relacional
Modelo relacionalModelo relacional
Modelo relacional
 
Datawarehouse olap olam
Datawarehouse olap olamDatawarehouse olap olam
Datawarehouse olap olam
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 
Disponibilidad de datos
Disponibilidad de datosDisponibilidad de datos
Disponibilidad de datos
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
 
Dimensional Modelling
Dimensional ModellingDimensional Modelling
Dimensional Modelling
 
CS8091_BDA_Unit_II_Clustering
CS8091_BDA_Unit_II_ClusteringCS8091_BDA_Unit_II_Clustering
CS8091_BDA_Unit_II_Clustering
 
Business Intelligence: Multidimensional Analysis
Business Intelligence: Multidimensional AnalysisBusiness Intelligence: Multidimensional Analysis
Business Intelligence: Multidimensional Analysis
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
 
Mongo db dhruba
Mongo db dhrubaMongo db dhruba
Mongo db dhruba
 
Modelo relacional
Modelo relacionalModelo relacional
Modelo relacional
 
Data ware house architecture
Data ware house architectureData ware house architecture
Data ware house architecture
 
Business intelligence and data warehouses
Business intelligence and data warehousesBusiness intelligence and data warehouses
Business intelligence and data warehouses
 

Andere mochten auch

Mysql Statments
Mysql StatmentsMysql Statments
Mysql Statments
SHC
 
Normalisation lesson plan
Normalisation   lesson planNormalisation   lesson plan
Normalisation lesson plan
Mohamed Maguid
 
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft Private Cloud
 
Normalization
NormalizationNormalization
Normalization
lingesan
 
Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)
Achmad Solichin
 
Normalisation - 2nd normal form
Normalisation - 2nd normal formNormalisation - 2nd normal form
Normalisation - 2nd normal form
college
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functions
Vikas Gupta
 

Andere mochten auch (20)

Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)Database design & Normalization (1NF, 2NF, 3NF)
Database design & Normalization (1NF, 2NF, 3NF)
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Databases: Normalisation
Databases: NormalisationDatabases: Normalisation
Databases: Normalisation
 
Mysql Statments
Mysql StatmentsMysql Statments
Mysql Statments
 
Normalisation lesson plan
Normalisation   lesson planNormalisation   lesson plan
Normalisation lesson plan
 
Database management system
Database management systemDatabase management system
Database management system
 
TIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation ResourceTIMEN: An Open Temporal Expression Normalisation Resource
TIMEN: An Open Temporal Expression Normalisation Resource
 
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure PresentationMicrosoft SQL Azure - Building Applications Using SQL Azure Presentation
Microsoft SQL Azure - Building Applications Using SQL Azure Presentation
 
Normalisation
NormalisationNormalisation
Normalisation
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Database Normalisation
Database NormalisationDatabase Normalisation
Database Normalisation
 
Normalization
NormalizationNormalization
Normalization
 
Normalization in databases
Normalization in databasesNormalization in databases
Normalization in databases
 
NORMALIZATION - BIS 1204: Data and Information Management I
NORMALIZATION - BIS 1204: Data and Information Management I NORMALIZATION - BIS 1204: Data and Information Management I
NORMALIZATION - BIS 1204: Data and Information Management I
 
Normalisation
NormalisationNormalisation
Normalisation
 
Time-Based Blind SQL Injection
Time-Based Blind SQL InjectionTime-Based Blind SQL Injection
Time-Based Blind SQL Injection
 
Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)Les01 (retrieving data using the sql select statement)
Les01 (retrieving data using the sql select statement)
 
Dbms and sqlpptx
Dbms and sqlpptxDbms and sqlpptx
Dbms and sqlpptx
 
Normalisation - 2nd normal form
Normalisation - 2nd normal formNormalisation - 2nd normal form
Normalisation - 2nd normal form
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functions
 

Ähnlich wie Normalisation student summary

Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
mussawir20
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
MR Z
 

Ähnlich wie Normalisation student summary (20)

Unit 2 DBMS.pptx
Unit 2 DBMS.pptxUnit 2 DBMS.pptx
Unit 2 DBMS.pptx
 
Dbms 2: Data Model
Dbms 2: Data ModelDbms 2: Data Model
Dbms 2: Data Model
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
 
database1.pdf
database1.pdfdatabase1.pdf
database1.pdf
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
 
Chapter-5 The Relational Data Model
Chapter-5 The Relational Data ModelChapter-5 The Relational Data Model
Chapter-5 The Relational Data Model
 
Database concepts
Database conceptsDatabase concepts
Database concepts
 
Database Part 1
Database Part 1Database Part 1
Database Part 1
 
Note Taking
Note TakingNote Taking
Note Taking
 
What is database.pptx
What is database.pptxWhat is database.pptx
What is database.pptx
 
Info systems databases
Info systems databasesInfo systems databases
Info systems databases
 
Presentation DBMS (1)
Presentation DBMS (1)Presentation DBMS (1)
Presentation DBMS (1)
 
Importance of Normalization
Importance of NormalizationImportance of Normalization
Importance of Normalization
 
DBMS unit 1.pptx
DBMS unit 1.pptxDBMS unit 1.pptx
DBMS unit 1.pptx
 
normalization-1.pptx
normalization-1.pptxnormalization-1.pptx
normalization-1.pptx
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
 
DBMS Part-4.pdf
DBMS Part-4.pdfDBMS Part-4.pdf
DBMS Part-4.pdf
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
 
Dictionaries_66f8_csm-c.pptx
Dictionaries_66f8_csm-c.pptxDictionaries_66f8_csm-c.pptx
Dictionaries_66f8_csm-c.pptx
 

Mehr von mary_ramsay

Circumference of a Circle
Circumference of a CircleCircumference of a Circle
Circumference of a Circle
mary_ramsay
 
RWG 5 For Mac Training Guide
RWG 5 For Mac Training GuideRWG 5 For Mac Training Guide
RWG 5 For Mac Training Guide
mary_ramsay
 
Sdd Testing & Evaluating
Sdd Testing & EvaluatingSdd Testing & Evaluating
Sdd Testing & Evaluating
mary_ramsay
 
All meta languages
All meta languagesAll meta languages
All meta languages
mary_ramsay
 
Sdd metalanguage
Sdd metalanguageSdd metalanguage
Sdd metalanguage
mary_ramsay
 
The role of the cpu in the operation
The role of the cpu in the operationThe role of the cpu in the operation
The role of the cpu in the operation
mary_ramsay
 
Sorting & Extracting Data
Sorting & Extracting DataSorting & Extracting Data
Sorting & Extracting Data
mary_ramsay
 
SQL Structure Query Language
SQL Structure Query LanguageSQL Structure Query Language
SQL Structure Query Language
mary_ramsay
 
URL_universal Resourse Locator
URL_universal Resourse LocatorURL_universal Resourse Locator
URL_universal Resourse Locator
mary_ramsay
 
IPT Assessment Schedule 2012
IPT Assessment Schedule 2012IPT Assessment Schedule 2012
IPT Assessment Schedule 2012
mary_ramsay
 

Mehr von mary_ramsay (12)

Circumference of a Circle
Circumference of a CircleCircumference of a Circle
Circumference of a Circle
 
RWG 5 For Mac Training Guide
RWG 5 For Mac Training GuideRWG 5 For Mac Training Guide
RWG 5 For Mac Training Guide
 
Sdd HSC Summary
Sdd HSC SummarySdd HSC Summary
Sdd HSC Summary
 
Sdd Testing & Evaluating
Sdd Testing & EvaluatingSdd Testing & Evaluating
Sdd Testing & Evaluating
 
All meta languages
All meta languagesAll meta languages
All meta languages
 
Sdd metalanguage
Sdd metalanguageSdd metalanguage
Sdd metalanguage
 
The role of the cpu in the operation
The role of the cpu in the operationThe role of the cpu in the operation
The role of the cpu in the operation
 
Sorting & Extracting Data
Sorting & Extracting DataSorting & Extracting Data
Sorting & Extracting Data
 
SQL Structure Query Language
SQL Structure Query LanguageSQL Structure Query Language
SQL Structure Query Language
 
URL_universal Resourse Locator
URL_universal Resourse LocatorURL_universal Resourse Locator
URL_universal Resourse Locator
 
IPT Assessment Schedule 2012
IPT Assessment Schedule 2012IPT Assessment Schedule 2012
IPT Assessment Schedule 2012
 
IPT HSC Summary
IPT HSC SummaryIPT HSC Summary
IPT HSC Summary
 

Kürzlich hochgeladen

+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...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

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
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
+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...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

Normalisation student summary

  • 1. Normalising a database Create a relational database; with a primary key; and show relationships
  • 2. Relational databases use the concept of normalisation or Normal forms to define well-formed tables. 1. Normal Forms (NF) ü  Rules aimed at eliminating redundancy within the database; ü  Each table is given a primary key; ü  Usually results in more tables than would have otherwise been ü included; ü  Results in independent tables that can be edited without ü affecting other tables; ü  There should be nothing common between any of the tables.
  • 3. ü  sets out to establish common ground between the tables so they can be related; ü  A field is established that is common to each set of two tables; ü The common field is used to link the two tables.
  • 4. The use of normalisation ensures that there are no problems When modifying the database: ü  Each table can be edited and manipulated separately; ü  Relationships can be established between each table when ü data is needed from more than one table. Example ~ the school database INF •  all fields related to students would become one table: Students •  all fields related to teachers would become the second table: Teachers The link between Teachers and Students is Class ü  A ClassCode filed will be established to allow one table to read the data in the other table; ü  ClassID may be the primary key of the Students table; ü  ClassID, containing the exact same data, may be the foreign key of the Teachers table; ü  The list of students in the teacher s class can then be accessed through the relationship ü  Established between the two tables.
  • 5. When normalising a database you should achieve four goals: ü  Arranging data into logical groups such that each group describes a small part of the whole ü  Minimizing the amount of duplicated data stored in a database ü  Building a database in which you can access and manipulate the data quickly and efficiently without compromising the integrity of the data storage ü  Organising the data such that, when you modify it, you make the changes in only one place
  • 6. Normalization is a complex process with many specific rules and different intensity levels. In its full definition, normalization is the process of discarding repeating groups, minimizing redundancy, eliminating composite keys for partial dependency and separating non-key attributes. A properly normalised design allows you to: •  Use storage space efficiently •  Eliminate redundant data •  Reduce or eliminate inconsistent data •  Ease the database maintenance burden A bad database design usually include: •  Repetition of information •  Inability to represent certain information •  Loss of information •  Difficulty to maintain information
  • 7. The Process of Normalisation While many people find the process of normalisation quite confusing, this is generally because the formal definitions tend to be quite jargon-heavy and the basic concepts become hidden beneath a murky surface of functional dependencies, determinants and key attributes.
  • 8. A very good way of understanding normalisation is to use an analogy of paragraphs and good writing. • Any basic language course teaches the fact that all good writing uses single-theme paragraphs. That is, each paragraph should deal solely with a single theme; a paragraph with more than one theme should be split into separate paragraphs – one for each theme
  • 9. Normalisation uses the same idea: each table should only contain information related to a single concept. HINT: If it contains more than the table should be split into a number of smaller, related tables
  • 11. Family notification of Student Borrowing Additional Schema