SlideShare a Scribd company logo
1 of 15
Download to read offline
1
Information Management Centre, Thames Valley University
Relational Modelling
(Normalisation)
Abdisalam Issa-Salwe
Faculty of Professional Studies
Thames Valley University
Week 7 Seminar
Information Management Centre, Thames Valley University
Company Name
Company Number
Job Title
Job Ref Number
Applicant Address
Applicant Name
Applicant Number
1NFUNF
2
Information Management Centre, Thames Valley University
UNF – 1NF
Applicant
Applicant Number
Applicant Name
Applicant Address
Job Ref Number
Job Title
Company Number
Company Name
Information Management Centre, Thames Valley University
Company Name
Company Number
Job Title
Job Ref Number
Applicant Address
Applicant Name
Applicant Number
1NFUNF
3
Information Management Centre, Thames Valley University
UNF: Remove Repeating Groups
 Create a new group for the multi-valued
attributes
 Include the Primary Key attribute from
the original group as a Foreign Key in
the new group
 Choose a key for the new group
Information Management Centre, Thames Valley University
Company Name
Company Number
Job TitleCompany Name
Job Ref NumberCompany Number
Job Title
Job Ref Number
Applicant AddressApplicant Address
Applicant NameApplicant Name
Applicant NumberApplicant Number
1NFUNF
4
Information Management Centre, Thames Valley University
Company Name
Company Number
Job TitleCompany Name
Job Ref NumberCompany Number
*Applicant NumberJob Title
Job Ref Number
Applicant AddressApplicant Address
Applicant NameApplicant Name
Applicant NumberApplicant Number
1NFUNF
Information Management Centre, Thames Valley University
Applicant
Applicant's Job
Applicant Number
Applicant Name
Applicant Address
Job Ref Number
Job Title
Company Number
Company Name
5
Information Management Centre, Thames Valley University
Applicant
Applicant's Job
Applicant Number
Applicant Name
Applicant Address
Job Ref Number
Job Title
Company Number
Company Name
*Applicant Number
1NF – 2NF
Information Management Centre, Thames Valley University
1NF – 2NF
Applicant Number
Applicant Name
Applicant Address
*Applicant Number
*Job Ref Number
Applicant
Applicant's Job
Job
Job Reference Number
Job Title
Company Number
Company Name
6
Information Management Centre, Thames Valley University
1NF – 2NF
Applicant Number
Applicant Name
Applicant Address
*Applicant Number
*Job Ref Number
Applicant
Applicant's Job
Job
Job Reference Number
Job Title
Company Number
Company Name
Information Management Centre, Thames Valley University
1NF to 2NF: Remove Partial Dependencies
 Partial dependency only arises where
we have a compound key
 It describes the situation where there is
a functional dependency between one
part of the key and some non-key
attribute
 e.g. Job Reference Number determines Job
Title, Company Number and Company
Name
7
Information Management Centre, Thames Valley University
Partial Dependency example
 Job
Reference
Number
determines
Job Title
Job Ref
Number
Applicant
Number
Job Title
J24 A1001 Trainee SA
J24 A1002 Trainee SA
J99 A1002 IT Manager
Information Management Centre, Thames Valley University
1NF to 2NF: Remove Partial Dependencies (cont…)
 Create a new group for all the partially
dependent data items
 The Primary Key of the new group will
be the attribute(s) that the partially
dependent data items depended on
 The key of the original group does not
change
8
Information Management Centre, Thames Valley University
2NF
Company Name
Company Number
Job Title
Job Ref Number
*Applicant Number
1NF
Information Management Centre, Thames Valley University
2NF to 3NF: Remove Transitive Dependencies
 A transitive dependency arises where
there is a dependency between two
data items neither of which is a
candidate key for the data group in
question
 e.g. Company Number determines
Company Name
9
Information Management Centre, Thames Valley University
 Remove the data items that depend on
the non-candidate key attribute
 The attribute that determines them is
the Primary Key of the new group
 Leave behind a copy of this attribute as
a Foreign Key
2NF to 3NF: Remove Transitive Dependencies (cont…)
Information Management Centre, Thames Valley University
2NF – 3NF
Company Name
Company Number
Company Name
Company Number
Job TitleJob Title
Job Reference NumberJob Reference Number
3NF2NF
10
Information Management Centre, Thames Valley University
2NF – 3NF
2NF 3NF
Job Reference Number Job Reference Number
Job Title Job Title
Company Number
Company Name
Company Number
Company Name
Information Management Centre, Thames Valley University
2NF – 3NF
2NF 3NF
Job Reference Number Job Reference Number
Job Title Job Title
Company Number *Company Number
Company Name
Company Number
Company Name
11
Information Management Centre, Thames Valley University
2NF – 3NF
Applicant
Applicant's Job
Job
Job Ref Number
Title
Company Number
Company Name
Information Management Centre, Thames Valley University
2NF – 3NF
Applicant
Applicant's Job
Job
Company
Company Number
Company Name
Job Ref Number
Title
*Company Number
12
Information Management Centre, Thames Valley University
Functional Dependency
 A Function in mathematics is a relation between two
domains A,B such that
 for every a in A there is exactly one corresponding b in B
 e.g. A and B both real numbers:
 square(x) is a function
 but
 sqrt(x) is not a function
 sqrt(4) = (-2,2) since -2*-2 = 4 as well as 2*2=4
 this is an example of a non-functional dependency
Information Management Centre, Thames Valley University
Mnemonic
 “the key, the whole key and nothing but
the key”
 2NF
 “the key” : non-key fields depend on the key
 “the whole key”: non-key fields depend fully on
the key
 3NF
 “nothing but the key”: non-key fields are not
dependent on each other
13
Information Management Centre, Thames Valley University
Unnormalised Entity
Begin with an entity from
the logical data model
Information Management Centre, Thames Valley University
First Normal Form (1NF)
Look for repeating groups of attributes and
remove them into separate entities
14
Information Management Centre, Thames Valley University
Second Normal Form (2NF)
If an entity has a concatenated identifier, look for attributes that
depend only on part of the identifier. If found, remove to new entity.
Information Management Centre, Thames Valley University
Third Normal Form (3NF)
Look for attributes that depend only on another non-identifying attribute.
If found, remove to new entity. Also remove any calculated attributes.
15
Information Management Centre, Thames Valley University
Potential anomalies
 UPDATE the price per session of facility 1
 now different rates for squash courts - suspect
business rule is same rate for all facilities for a
‘sport’
 ADD a new tennis court
 must also ensure the same rate is used as for
other tennis courts
 DELETE facility 11
 lose the rate per session for skittles
Information Management Centre, Thames Valley University
Summary: Data modelling
 Data modelling answers the question:
 What data exists and what is the most efficient way of organising it?
 Data Modelling is the analysis of data in organisations,
departments, branches, etc.
 It captures all the data uses,
 It organises it into an efficient structure.
 Data modelling = the construction of a model of the data
requirements of the organisation.
 Data requirements are more stable that processing
requirements.
 There are two techniques:
 1. Entity-relationship modelling - a top down approach.
2. Normalisation - a bottom up approach.

More Related Content

Viewers also liked

Save The World by Pelayo ÁLvarez Brecht
Save The World by Pelayo ÁLvarez Brecht   Save The World by Pelayo ÁLvarez Brecht
Save The World by Pelayo ÁLvarez Brecht colegiopublasturias
 
World Cafe Astd Coaching Sig 4.10
World Cafe Astd Coaching Sig 4.10World Cafe Astd Coaching Sig 4.10
World Cafe Astd Coaching Sig 4.10jab617
 
Viaexpat Introduction Dec 17
Viaexpat Introduction Dec 17Viaexpat Introduction Dec 17
Viaexpat Introduction Dec 17Victor_Jones
 
ERP in de echte zin (19 slide version)
ERP in de echte zin (19 slide version)ERP in de echte zin (19 slide version)
ERP in de echte zin (19 slide version)Filip De Graeve
 
Generali Group 9M 2012 Results
Generali Group 9M 2012 ResultsGenerali Group 9M 2012 Results
Generali Group 9M 2012 ResultsGenerali
 
ClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI Westin
ClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI WestinClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI Westin
ClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI WestinClearedJobs.Net
 
Magic Entertainment Presentation
Magic Entertainment   PresentationMagic Entertainment   Presentation
Magic Entertainment Presentationankitchawla
 
IATEFL / British Council Milan 09
IATEFL / British Council Milan 09IATEFL / British Council Milan 09
IATEFL / British Council Milan 09Seth dickens
 
Public Health Situation in Gaza 2009
Public Health Situation in Gaza 2009Public Health Situation in Gaza 2009
Public Health Situation in Gaza 2009ahmedicine
 

Viewers also liked (14)

Save The World by Pelayo ÁLvarez Brecht
Save The World by Pelayo ÁLvarez Brecht   Save The World by Pelayo ÁLvarez Brecht
Save The World by Pelayo ÁLvarez Brecht
 
World Cafe Astd Coaching Sig 4.10
World Cafe Astd Coaching Sig 4.10World Cafe Astd Coaching Sig 4.10
World Cafe Astd Coaching Sig 4.10
 
SMEI Certification in PRC
SMEI Certification in PRCSMEI Certification in PRC
SMEI Certification in PRC
 
Astronomia
AstronomiaAstronomia
Astronomia
 
Viaexpat Introduction Dec 17
Viaexpat Introduction Dec 17Viaexpat Introduction Dec 17
Viaexpat Introduction Dec 17
 
ERP in de echte zin (19 slide version)
ERP in de echte zin (19 slide version)ERP in de echte zin (19 slide version)
ERP in de echte zin (19 slide version)
 
Philosophy Debate
Philosophy DebatePhilosophy Debate
Philosophy Debate
 
Generali Group 9M 2012 Results
Generali Group 9M 2012 ResultsGenerali Group 9M 2012 Results
Generali Group 9M 2012 Results
 
CCOSLA EuropeAid Training Module
CCOSLA EuropeAid Training ModuleCCOSLA EuropeAid Training Module
CCOSLA EuropeAid Training Module
 
ClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI Westin
ClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI WestinClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI Westin
ClearedJobs.Net Cleared Job Fair Job Seeker's Handbook May 13th BWI Westin
 
CCOSLA Project, Training Module
CCOSLA Project, Training ModuleCCOSLA Project, Training Module
CCOSLA Project, Training Module
 
Magic Entertainment Presentation
Magic Entertainment   PresentationMagic Entertainment   Presentation
Magic Entertainment Presentation
 
IATEFL / British Council Milan 09
IATEFL / British Council Milan 09IATEFL / British Council Milan 09
IATEFL / British Council Milan 09
 
Public Health Situation in Gaza 2009
Public Health Situation in Gaza 2009Public Health Situation in Gaza 2009
Public Health Situation in Gaza 2009
 

Similar to Week 7 normalisation lecture (last)

Metadata Melodies Webinar with David Loshin Presentation
Metadata Melodies Webinar with David Loshin PresentationMetadata Melodies Webinar with David Loshin Presentation
Metadata Melodies Webinar with David Loshin PresentationEmbarcadero Technologies
 
A2 databases
A2 databasesA2 databases
A2 databasesc.west
 
training and placement cell portal
training and placement cell portal training and placement cell portal
training and placement cell portal Panasa Ramaiah Sykam
 
Importance and Impact of ERP Systems on Industry
Importance and Impact of ERP Systems on IndustryImportance and Impact of ERP Systems on Industry
Importance and Impact of ERP Systems on IndustryBaker Khader Abdallah, PMP
 
A G S010 Taylor 091907
A G S010  Taylor 091907A G S010  Taylor 091907
A G S010 Taylor 091907Dreamforce07
 
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...Sparkrock
 
Capstone Project - PPDWS Report 150807 1705 FINAL - Robert Balaam
Capstone Project - PPDWS Report 150807 1705 FINAL - Robert BalaamCapstone Project - PPDWS Report 150807 1705 FINAL - Robert Balaam
Capstone Project - PPDWS Report 150807 1705 FINAL - Robert BalaamRobert Balaam
 
Enterprise business systems
Enterprise business systemsEnterprise business systems
Enterprise business systemsJaipal Dhobale
 
Normalization
NormalizationNormalization
NormalizationAbuSahama
 
Review the following scenarioAssume that you have recently be.docx
Review the following scenarioAssume that you have recently be.docxReview the following scenarioAssume that you have recently be.docx
Review the following scenarioAssume that you have recently be.docxinfantkimber
 
ENGIN 36 Final Exam Take Home Exam May 15, 2020 .docx
ENGIN 36 Final Exam Take Home Exam May 15, 2020 .docxENGIN 36 Final Exam Take Home Exam May 15, 2020 .docx
ENGIN 36 Final Exam Take Home Exam May 15, 2020 .docxkhanpaulita
 
Assignment 1 LASA 2—Company Analysis ReportReview the follo
Assignment 1 LASA 2—Company Analysis ReportReview the folloAssignment 1 LASA 2—Company Analysis ReportReview the follo
Assignment 1 LASA 2—Company Analysis ReportReview the follodesteinbrook
 
Page 1 of 17 Chapter 14 Operational.docx
Page 1 of 17  Chapter 14 Operational.docxPage 1 of 17  Chapter 14 Operational.docx
Page 1 of 17 Chapter 14 Operational.docxgerardkortney
 
ISFM-300 Case Study, Stage 3 IT Requirements Before you .docx
ISFM-300 Case Study, Stage 3  IT Requirements Before you .docxISFM-300 Case Study, Stage 3  IT Requirements Before you .docx
ISFM-300 Case Study, Stage 3 IT Requirements Before you .docxpriestmanmable
 

Similar to Week 7 normalisation lecture (last) (20)

Metadata Melodies Webinar with David Loshin Presentation
Metadata Melodies Webinar with David Loshin PresentationMetadata Melodies Webinar with David Loshin Presentation
Metadata Melodies Webinar with David Loshin Presentation
 
Arizona green (10.12.14)
Arizona green (10.12.14)Arizona green (10.12.14)
Arizona green (10.12.14)
 
A2 databases
A2 databasesA2 databases
A2 databases
 
training and placement cell portal
training and placement cell portal training and placement cell portal
training and placement cell portal
 
Sql Lab 4 Essay
Sql Lab 4 EssaySql Lab 4 Essay
Sql Lab 4 Essay
 
Importance and Impact of ERP Systems on Industry
Importance and Impact of ERP Systems on IndustryImportance and Impact of ERP Systems on Industry
Importance and Impact of ERP Systems on Industry
 
A G S010 Taylor 091907
A G S010  Taylor 091907A G S010  Taylor 091907
A G S010 Taylor 091907
 
SA Chapter 10
SA Chapter 10SA Chapter 10
SA Chapter 10
 
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
 
Capstone Project - PPDWS Report 150807 1705 FINAL - Robert Balaam
Capstone Project - PPDWS Report 150807 1705 FINAL - Robert BalaamCapstone Project - PPDWS Report 150807 1705 FINAL - Robert Balaam
Capstone Project - PPDWS Report 150807 1705 FINAL - Robert Balaam
 
mohan-sc13m055
mohan-sc13m055mohan-sc13m055
mohan-sc13m055
 
Enterprise business systems
Enterprise business systemsEnterprise business systems
Enterprise business systems
 
Normalization
NormalizationNormalization
Normalization
 
Review the following scenarioAssume that you have recently be.docx
Review the following scenarioAssume that you have recently be.docxReview the following scenarioAssume that you have recently be.docx
Review the following scenarioAssume that you have recently be.docx
 
ENGIN 36 Final Exam Take Home Exam May 15, 2020 .docx
ENGIN 36 Final Exam Take Home Exam May 15, 2020 .docxENGIN 36 Final Exam Take Home Exam May 15, 2020 .docx
ENGIN 36 Final Exam Take Home Exam May 15, 2020 .docx
 
Assignment 1 LASA 2—Company Analysis ReportReview the follo
Assignment 1 LASA 2—Company Analysis ReportReview the folloAssignment 1 LASA 2—Company Analysis ReportReview the follo
Assignment 1 LASA 2—Company Analysis ReportReview the follo
 
Person model
Person modelPerson model
Person model
 
Df12 Performance Tuning
Df12 Performance TuningDf12 Performance Tuning
Df12 Performance Tuning
 
Page 1 of 17 Chapter 14 Operational.docx
Page 1 of 17  Chapter 14 Operational.docxPage 1 of 17  Chapter 14 Operational.docx
Page 1 of 17 Chapter 14 Operational.docx
 
ISFM-300 Case Study, Stage 3 IT Requirements Before you .docx
ISFM-300 Case Study, Stage 3  IT Requirements Before you .docxISFM-300 Case Study, Stage 3  IT Requirements Before you .docx
ISFM-300 Case Study, Stage 3 IT Requirements Before you .docx
 

More from Taibah University, College of Computer Science & Engineering

More from Taibah University, College of Computer Science & Engineering (20)

Lecture 1- Computer Organization and Architecture.pdf
Lecture 1- Computer Organization and Architecture.pdfLecture 1- Computer Organization and Architecture.pdf
Lecture 1- Computer Organization and Architecture.pdf
 
The paper the welfare state of the somali nation - a possible solution to t...
The paper   the welfare state of the somali nation - a possible solution to t...The paper   the welfare state of the somali nation - a possible solution to t...
The paper the welfare state of the somali nation - a possible solution to t...
 
Colonial intrusion and_the_somali_resistance
Colonial intrusion and_the_somali_resistanceColonial intrusion and_the_somali_resistance
Colonial intrusion and_the_somali_resistance
 
Lecture 3 (Contemporary approaches to Information Systems)
Lecture 3 (Contemporary approaches to Information Systems)Lecture 3 (Contemporary approaches to Information Systems)
Lecture 3 (Contemporary approaches to Information Systems)
 
Lecture 7 (business-level strategy and the value chain model)
Lecture 7  (business-level strategy and the value chain model)Lecture 7  (business-level strategy and the value chain model)
Lecture 7 (business-level strategy and the value chain model)
 
Lecture 4 (using information technology for competitive advantage)
Lecture 4 (using information technology for competitive advantage)Lecture 4 (using information technology for competitive advantage)
Lecture 4 (using information technology for competitive advantage)
 
Lecture 2 (major types of information systems in organizations)
Lecture 2 (major types of information systems in organizations)Lecture 2 (major types of information systems in organizations)
Lecture 2 (major types of information systems in organizations)
 
Practical session 1 (critical path analaysis)
Practical session 1 (critical path analaysis)Practical session 1 (critical path analaysis)
Practical session 1 (critical path analaysis)
 
Chapter 2 modeling the process and life-cycle
Chapter 2  modeling the process and life-cycleChapter 2  modeling the process and life-cycle
Chapter 2 modeling the process and life-cycle
 
Historical Perspective on the Challenge Facing the Somali Sacral Unity
Historical Perspective on the Challenge Facing the Somali Sacral UnityHistorical Perspective on the Challenge Facing the Somali Sacral Unity
Historical Perspective on the Challenge Facing the Somali Sacral Unity
 
Colonial intrusion and the Somali Resistance
Colonial intrusion and the Somali ResistanceColonial intrusion and the Somali Resistance
Colonial intrusion and the Somali Resistance
 
Lecture 8 (information systems and strategy planning)
Lecture 8  (information systems and strategy planning)Lecture 8  (information systems and strategy planning)
Lecture 8 (information systems and strategy planning)
 
Lecture 4 (using information technology for competitive advantage)
Lecture 4 (using information technology for competitive advantage)Lecture 4 (using information technology for competitive advantage)
Lecture 4 (using information technology for competitive advantage)
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Lecture2 is331 data&infomanag(databaseenv)
Lecture2 is331 data&infomanag(databaseenv)Lecture2 is331 data&infomanag(databaseenv)
Lecture2 is331 data&infomanag(databaseenv)
 
Lecture1 is322 data&infomanag(introduction)(old curr)
Lecture1 is322 data&infomanag(introduction)(old curr)Lecture1 is322 data&infomanag(introduction)(old curr)
Lecture1 is322 data&infomanag(introduction)(old curr)
 
Lecture6 is353(ea&data viewpoint )
Lecture6 is353(ea&data viewpoint )Lecture6 is353(ea&data viewpoint )
Lecture6 is353(ea&data viewpoint )
 
Lecture4 is353-ea(fea)
Lecture4 is353-ea(fea)Lecture4 is353-ea(fea)
Lecture4 is353-ea(fea)
 
Lecture3 is353-ea(togaf)
Lecture3 is353-ea(togaf)Lecture3 is353-ea(togaf)
Lecture3 is353-ea(togaf)
 
Lecture2 is353-ea(the zachma framework)
Lecture2 is353-ea(the zachma framework)Lecture2 is353-ea(the zachma framework)
Lecture2 is353-ea(the zachma framework)
 

Recently uploaded

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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.pdfsudhanshuwaghmare1
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Week 7 normalisation lecture (last)

  • 1. 1 Information Management Centre, Thames Valley University Relational Modelling (Normalisation) Abdisalam Issa-Salwe Faculty of Professional Studies Thames Valley University Week 7 Seminar Information Management Centre, Thames Valley University Company Name Company Number Job Title Job Ref Number Applicant Address Applicant Name Applicant Number 1NFUNF
  • 2. 2 Information Management Centre, Thames Valley University UNF – 1NF Applicant Applicant Number Applicant Name Applicant Address Job Ref Number Job Title Company Number Company Name Information Management Centre, Thames Valley University Company Name Company Number Job Title Job Ref Number Applicant Address Applicant Name Applicant Number 1NFUNF
  • 3. 3 Information Management Centre, Thames Valley University UNF: Remove Repeating Groups  Create a new group for the multi-valued attributes  Include the Primary Key attribute from the original group as a Foreign Key in the new group  Choose a key for the new group Information Management Centre, Thames Valley University Company Name Company Number Job TitleCompany Name Job Ref NumberCompany Number Job Title Job Ref Number Applicant AddressApplicant Address Applicant NameApplicant Name Applicant NumberApplicant Number 1NFUNF
  • 4. 4 Information Management Centre, Thames Valley University Company Name Company Number Job TitleCompany Name Job Ref NumberCompany Number *Applicant NumberJob Title Job Ref Number Applicant AddressApplicant Address Applicant NameApplicant Name Applicant NumberApplicant Number 1NFUNF Information Management Centre, Thames Valley University Applicant Applicant's Job Applicant Number Applicant Name Applicant Address Job Ref Number Job Title Company Number Company Name
  • 5. 5 Information Management Centre, Thames Valley University Applicant Applicant's Job Applicant Number Applicant Name Applicant Address Job Ref Number Job Title Company Number Company Name *Applicant Number 1NF – 2NF Information Management Centre, Thames Valley University 1NF – 2NF Applicant Number Applicant Name Applicant Address *Applicant Number *Job Ref Number Applicant Applicant's Job Job Job Reference Number Job Title Company Number Company Name
  • 6. 6 Information Management Centre, Thames Valley University 1NF – 2NF Applicant Number Applicant Name Applicant Address *Applicant Number *Job Ref Number Applicant Applicant's Job Job Job Reference Number Job Title Company Number Company Name Information Management Centre, Thames Valley University 1NF to 2NF: Remove Partial Dependencies  Partial dependency only arises where we have a compound key  It describes the situation where there is a functional dependency between one part of the key and some non-key attribute  e.g. Job Reference Number determines Job Title, Company Number and Company Name
  • 7. 7 Information Management Centre, Thames Valley University Partial Dependency example  Job Reference Number determines Job Title Job Ref Number Applicant Number Job Title J24 A1001 Trainee SA J24 A1002 Trainee SA J99 A1002 IT Manager Information Management Centre, Thames Valley University 1NF to 2NF: Remove Partial Dependencies (cont…)  Create a new group for all the partially dependent data items  The Primary Key of the new group will be the attribute(s) that the partially dependent data items depended on  The key of the original group does not change
  • 8. 8 Information Management Centre, Thames Valley University 2NF Company Name Company Number Job Title Job Ref Number *Applicant Number 1NF Information Management Centre, Thames Valley University 2NF to 3NF: Remove Transitive Dependencies  A transitive dependency arises where there is a dependency between two data items neither of which is a candidate key for the data group in question  e.g. Company Number determines Company Name
  • 9. 9 Information Management Centre, Thames Valley University  Remove the data items that depend on the non-candidate key attribute  The attribute that determines them is the Primary Key of the new group  Leave behind a copy of this attribute as a Foreign Key 2NF to 3NF: Remove Transitive Dependencies (cont…) Information Management Centre, Thames Valley University 2NF – 3NF Company Name Company Number Company Name Company Number Job TitleJob Title Job Reference NumberJob Reference Number 3NF2NF
  • 10. 10 Information Management Centre, Thames Valley University 2NF – 3NF 2NF 3NF Job Reference Number Job Reference Number Job Title Job Title Company Number Company Name Company Number Company Name Information Management Centre, Thames Valley University 2NF – 3NF 2NF 3NF Job Reference Number Job Reference Number Job Title Job Title Company Number *Company Number Company Name Company Number Company Name
  • 11. 11 Information Management Centre, Thames Valley University 2NF – 3NF Applicant Applicant's Job Job Job Ref Number Title Company Number Company Name Information Management Centre, Thames Valley University 2NF – 3NF Applicant Applicant's Job Job Company Company Number Company Name Job Ref Number Title *Company Number
  • 12. 12 Information Management Centre, Thames Valley University Functional Dependency  A Function in mathematics is a relation between two domains A,B such that  for every a in A there is exactly one corresponding b in B  e.g. A and B both real numbers:  square(x) is a function  but  sqrt(x) is not a function  sqrt(4) = (-2,2) since -2*-2 = 4 as well as 2*2=4  this is an example of a non-functional dependency Information Management Centre, Thames Valley University Mnemonic  “the key, the whole key and nothing but the key”  2NF  “the key” : non-key fields depend on the key  “the whole key”: non-key fields depend fully on the key  3NF  “nothing but the key”: non-key fields are not dependent on each other
  • 13. 13 Information Management Centre, Thames Valley University Unnormalised Entity Begin with an entity from the logical data model Information Management Centre, Thames Valley University First Normal Form (1NF) Look for repeating groups of attributes and remove them into separate entities
  • 14. 14 Information Management Centre, Thames Valley University Second Normal Form (2NF) If an entity has a concatenated identifier, look for attributes that depend only on part of the identifier. If found, remove to new entity. Information Management Centre, Thames Valley University Third Normal Form (3NF) Look for attributes that depend only on another non-identifying attribute. If found, remove to new entity. Also remove any calculated attributes.
  • 15. 15 Information Management Centre, Thames Valley University Potential anomalies  UPDATE the price per session of facility 1  now different rates for squash courts - suspect business rule is same rate for all facilities for a ‘sport’  ADD a new tennis court  must also ensure the same rate is used as for other tennis courts  DELETE facility 11  lose the rate per session for skittles Information Management Centre, Thames Valley University Summary: Data modelling  Data modelling answers the question:  What data exists and what is the most efficient way of organising it?  Data Modelling is the analysis of data in organisations, departments, branches, etc.  It captures all the data uses,  It organises it into an efficient structure.  Data modelling = the construction of a model of the data requirements of the organisation.  Data requirements are more stable that processing requirements.  There are two techniques:  1. Entity-relationship modelling - a top down approach. 2. Normalisation - a bottom up approach.