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

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

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Kürzlich hochgeladen (20)

Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdf
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 

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