RELATIONSHIP AMONG ENTITIES
Relationship
A relationship is represented by diamond shape in ER diagram, it shows the relationship among entities. There are four types of relationships:
1. One to One
2. One to Many
3. Many to One
4. Many to Many
1. One to One Relationship
When a single instance of an entity is associated with a single instance of another entity then it is called one to one relationship. For example, a person has only one passport and a passport is given to one person.
2. One to Many Relationship
When a single instance of an entity is associated with more than one instances of another entity then it is called one to many relationship. For example – a customer can place many orders but a order cannot be placed by many customers.
3. Many to One Relationship
When more than one instances of an entity is associated with a single instance of another entity then it is called many to one relationship. For example – many students can study in a single college but a student cannot study in many colleges at the same time.
4. Many to Many Relationship
When more than one instances of an entity is associated with more than one instances of another entity then it is called many to many relationship. For example, a can be assigned to many projects and a project can be assigned to many students.
More topics from DBMS to read:
EasyExamNotes.com covered following topics in these notes.
- Introduction to Database
- Introduction to DBMS
- Advantages and disadvantages of DBMS
- DML, DDL and DCL
- Domains
- Introduction to data models
- Entities and Attributes
- Relationship among entities
- Tuples
- Attributes
- Relation
- Keys
- Relational Database
- Twelve rules of CODD
- Schemas
- Integrity Constraints
- Normalization
- Functional dependency
- Transaction processing concepts
- Schedule
- Serializability
- OODBMS vs RDBMS
- RDBMS
- SQL join
- SQL functions: SUM(), AVG(), MAX(), MIN(), COUNT().
- Block, Extent, Segment
- Oracle Background processes
- Trigger
- Oracle cursor
- Introduction to Concurrency Control
A list of Video lectures
References:
- Korth, Silbertz,Sudarshan, “Fundamental of Database System”, McGraw Hill
- Atul Kahate , “ Introduction to Database Management System”, Pearson Educations