SlideShare a Scribd company logo
1 of 8
HIGHER DATABASES
RELATIONSHIPS
WHAT IS A DATABASE RELATIONSHIP?
• A relationship is the way we describe how data is related or
attached to each other.
• For example we can say in a database of a school. Pupils and
teachers are related as a pupil is taught by teachers, and a
teacher teaches pupils.
ONE TO ONE RELATIONSHIP
•In a one – to - one relationship, each entity
occurrence in an entity is associated with one,
and only one, entity occurrence within a related
entity.
•For example, a School is managed by one, and
only one, Headteacher, with a Headteacher
managing one, and only one, School.
ONE TO ONE EXAMPLES
• A football club will only have one manager. A manager will only
work for one football club
• A pupil will only have one candidate number. A candidate
number can only be used by one pupil.
ONE TO MANY RELATIONSHIP
• In a one -to-many relationship, each entity occurrence in an
entity can be associated with one or more entity occurrences in
a related entity.
• For example, a School employs many Teachers and each of
those Teachers is employed by one School.
MANY TO MANY RELATIONSHIP
• In a many-to-many relationship, several entity occurrences in
an entity can be associated with multiple entity occurrences in a
related entity.
• For example, many Students study several different Subjects
and each of those Subjects is studied by many Students.
• Direct many-to-many relationships between two entities
cannot be implemented by a relational database system. To
overcome this many to many relationships are resolved to one
to many relationships
Database Relationships

More Related Content

Similar to Database Relationships

Similar to Database Relationships (13)

stress2.pptx
stress2.pptxstress2.pptx
stress2.pptx
 
Ian haywood the effective teacher-parent relationship
Ian haywood   the effective teacher-parent relationshipIan haywood   the effective teacher-parent relationship
Ian haywood the effective teacher-parent relationship
 
Developing positive relationship with the students
Developing positive relationship with the studentsDeveloping positive relationship with the students
Developing positive relationship with the students
 
The principal-and-relationships
The principal-and-relationshipsThe principal-and-relationships
The principal-and-relationships
 
Hattie teachers makea_difference
Hattie teachers makea_differenceHattie teachers makea_difference
Hattie teachers makea_difference
 
Module 2 - The Demands of the Society from the Teacher as a professional.pdf
Module 2 - The Demands of the Society from the Teacher as a professional.pdfModule 2 - The Demands of the Society from the Teacher as a professional.pdf
Module 2 - The Demands of the Society from the Teacher as a professional.pdf
 
Teacher assistants term 4 presentation
Teacher assistants term 4 presentationTeacher assistants term 4 presentation
Teacher assistants term 4 presentation
 
Teacher assistants term 4 presentation
Teacher assistants term 4 presentationTeacher assistants term 4 presentation
Teacher assistants term 4 presentation
 
Getting Involved In You Child's School
Getting Involved In You Child's SchoolGetting Involved In You Child's School
Getting Involved In You Child's School
 
2015 INTERNATIONAL ICT LEADING SEAGULLS_GOALS OF PRESCHOOL EDUCATİON
2015 INTERNATIONAL ICT LEADING SEAGULLS_GOALS OF PRESCHOOL EDUCATİON2015 INTERNATIONAL ICT LEADING SEAGULLS_GOALS OF PRESCHOOL EDUCATİON
2015 INTERNATIONAL ICT LEADING SEAGULLS_GOALS OF PRESCHOOL EDUCATİON
 
Education Philosophy and the Future of Education
Education Philosophy and the Future of Education Education Philosophy and the Future of Education
Education Philosophy and the Future of Education
 
Presentation for morris
Presentation for morrisPresentation for morris
Presentation for morris
 
Education
EducationEducation
Education
 

More from missstevenson01

Lesson 2 - Coding with Minecraft - Events.pptx
Lesson 2 - Coding with Minecraft - Events.pptxLesson 2 - Coding with Minecraft - Events.pptx
Lesson 2 - Coding with Minecraft - Events.pptx
missstevenson01
 
Lesson 1 - Coding with Minecraft -Introduction.pptx
Lesson 1 - Coding with Minecraft -Introduction.pptxLesson 1 - Coding with Minecraft -Introduction.pptx
Lesson 1 - Coding with Minecraft -Introduction.pptx
missstevenson01
 

More from missstevenson01 (20)

S3 environment
S3 environmentS3 environment
S3 environment
 
The Processor.pptx
The Processor.pptxThe Processor.pptx
The Processor.pptx
 
How Computers Work
How Computers WorkHow Computers Work
How Computers Work
 
Lesson 3 - Coding with Minecraft - Variables.pptx
Lesson 3 -  Coding with Minecraft -  Variables.pptxLesson 3 -  Coding with Minecraft -  Variables.pptx
Lesson 3 - Coding with Minecraft - Variables.pptx
 
Lesson 2 - Coding with Minecraft - Events.pptx
Lesson 2 - Coding with Minecraft - Events.pptxLesson 2 - Coding with Minecraft - Events.pptx
Lesson 2 - Coding with Minecraft - Events.pptx
 
Lesson 1 - Coding with Minecraft -Introduction.pptx
Lesson 1 - Coding with Minecraft -Introduction.pptxLesson 1 - Coding with Minecraft -Introduction.pptx
Lesson 1 - Coding with Minecraft -Introduction.pptx
 
Lesson2 - Coding with Minecraft - Events.pptx
Lesson2 - Coding with Minecraft - Events.pptxLesson2 - Coding with Minecraft - Events.pptx
Lesson2 - Coding with Minecraft - Events.pptx
 
Ethical hacking trojans, worms and spyware
Ethical hacking    trojans, worms and spywareEthical hacking    trojans, worms and spyware
Ethical hacking trojans, worms and spyware
 
Ethical hacking anti virus
Ethical hacking   anti virusEthical hacking   anti virus
Ethical hacking anti virus
 
Ethical hacking introduction to ethical hacking
Ethical hacking   introduction to ethical hackingEthical hacking   introduction to ethical hacking
Ethical hacking introduction to ethical hacking
 
S1 internet safety-chattingonline
S1 internet safety-chattingonlineS1 internet safety-chattingonline
S1 internet safety-chattingonline
 
S3 wireframe diagrams
S3 wireframe diagramsS3 wireframe diagrams
S3 wireframe diagrams
 
Sql
SqlSql
Sql
 
Alien database
Alien databaseAlien database
Alien database
 
Video Games and Copyright laws
Video Games and Copyright lawsVideo Games and Copyright laws
Video Games and Copyright laws
 
Games Design Document
Games Design DocumentGames Design Document
Games Design Document
 
Video game proposal
Video game proposalVideo game proposal
Video game proposal
 
Evaluation
EvaluationEvaluation
Evaluation
 
H evaluation
H evaluationH evaluation
H evaluation
 
H testing and debugging
H testing and debuggingH testing and debugging
H testing and debugging
 

Recently uploaded

IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
heathfieldcps1
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Essential Safety precautions during monsoon season
Essential Safety precautions during monsoon seasonEssential Safety precautions during monsoon season
Essential Safety precautions during monsoon season
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
An Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptxAn Overview of the Odoo 17 Discuss App.pptx
An Overview of the Odoo 17 Discuss App.pptx
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf....................Muslim-Law notes.pdf
....................Muslim-Law notes.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdfPost Exam Fun(da) Intra UEM General Quiz - Finals.pdf
Post Exam Fun(da) Intra UEM General Quiz - Finals.pdf
 
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdfPost Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
Post Exam Fun(da) Intra UEM General Quiz 2024 - Prelims q&a.pdf
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Mbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptxMbaye_Astou.Education Civica_Human Rights.pptx
Mbaye_Astou.Education Civica_Human Rights.pptx
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 

Database Relationships

  • 2. WHAT IS A DATABASE RELATIONSHIP? • A relationship is the way we describe how data is related or attached to each other. • For example we can say in a database of a school. Pupils and teachers are related as a pupil is taught by teachers, and a teacher teaches pupils.
  • 3. ONE TO ONE RELATIONSHIP •In a one – to - one relationship, each entity occurrence in an entity is associated with one, and only one, entity occurrence within a related entity. •For example, a School is managed by one, and only one, Headteacher, with a Headteacher managing one, and only one, School.
  • 4. ONE TO ONE EXAMPLES • A football club will only have one manager. A manager will only work for one football club • A pupil will only have one candidate number. A candidate number can only be used by one pupil.
  • 5. ONE TO MANY RELATIONSHIP • In a one -to-many relationship, each entity occurrence in an entity can be associated with one or more entity occurrences in a related entity. • For example, a School employs many Teachers and each of those Teachers is employed by one School.
  • 6.
  • 7. MANY TO MANY RELATIONSHIP • In a many-to-many relationship, several entity occurrences in an entity can be associated with multiple entity occurrences in a related entity. • For example, many Students study several different Subjects and each of those Subjects is studied by many Students. • Direct many-to-many relationships between two entities cannot be implemented by a relational database system. To overcome this many to many relationships are resolved to one to many relationships