- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Mandatory and optional Participation
Mandatory and optional participation are observed in E-R models between 2 different entities.
Mandatory Participation
In the mandatory participation, for every instance of entity A, there must exist an instance of entity B and vice versa.
An example of Mandatory participation would be relationship between mother and child. The child entity would exist only if there were a mother and similarly a mother would exist only if there were a child
Optional participation
In optional participation, it is not necessary for all the instances of the entity to participate in a relationship. It may be that the number of instances participating for a particular entity may even be zero.
Optional participation is good for depicting relationships that are not compulsory or may be temporary i.e relationships that may change over a period of time.
An example of this is Entity A is married to Entity B. Not all instances partake in this relationship and the relationship may even change over time.