Download presentation
Presentation is loading. Please wait.
Published byWilla Cain Modified over 9 years ago
1
3.3.1
2
What is an Entity What is an Entity Relationship Diagram? Different types of relationships
3
Systems can be confusing things. To help people understand what they are trying to design they often use diagrams. There are different styles of diagrams including: – Entity Relationship Diagrams – State Transition Diagrams – Data Flow Diagrams – Flowcharts The type of diagram used will depend on the system being designed but a combination of diagrams can be used on the same project.
5
Entities are ‘things’. Each entity is made up of attributes. For example, a is an entity. It is made up of leaves... and other things.
6
Strictly speaking... The is also an entity...as it too is made up of different attributes!
7
There are different types of relationship which you need to be aware of: – One-to-One – One-to-Many – Many-to-Many
8
Assuming a teacher only taught in one classroom in a school... Teacher Classroom
9
A teacher has many lessons but a lesson can only have one teacher. Teacher Lesson
10
A teacher has many students and a student can have many teachers. Many-to-Many relationships are never ideal so a third table is often created. Teacher Students
11
A third table is added to create two One-to- Many relationships. Teacher Students Class
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.