Unit 7 : Entity Relationship Model ( Part 2 ) Flashcards
What is optional participation in a relationship?
- Means one entity occurrence does not require a corresponding entity occurrence in a particular relationship.
- A customer may have zero or more orders, meaning the relationship between the customer and orders is optiona
What is mandatory participation in a relationship?
- Mans one entity occurrence requires a corresponding entity occurrence in a particular relationship.
- A student must be enrolled in at least one course, meaning the relationship between the student and course is mandatory.
What does relationship participation refers to?
- Refers to how entities participate in a relationship in a database model, especially in the context of an Entity-Relationship (ER) diagram.
Can an entity with optional participation exist without being part of a relationship?
Yes, an entity with optional participation can exist without being part of a relationship.
What does the degree of relationship indicates?
- Number of entities or participants associated with a relationship
List out all the 4 relationship in relationship degree
- Unary Relationship
- Binary Relationship
- Ternary Relationship
- Quaternary Relationship
What is unary relationship?
- Association is mainteined within single entry
- An employee manages another employee (relationship within the same entity “Employee”).
What is binary relationship?
- Two entities are associated
- A customer places an order (relationship between “Customer” and “Order”).
What is ternary relationship?
- Three entities are associated
- A supplier provides a product to a warehouse (relationship among “Supplier,” “Product,” and “Warehouse”)
What is quaternary relationship?
- Four entities are associated
- A project involves an employee, client, department, and supervisor (relationship among “Project,” “Employee,” “Client,” and “Department”)
What is a recursive relationship?
- Relationship exist between occurrences of the same entity set
- An employee supervises another employee. Both are part of the same entity set “Employee.”
Where are recursive relationships typically found?
- Naturally found within unary relationship
Can you have a recursive relationship in a binary or ternary relationship?
- No, recursive relationships are specific to unary relationships where one entity type relates to itself.
What type of relationship involves an entity relating to itself?
- A unary relationship, where an entity is associated with itself.
What is composite entities also known as?
- Bridge entities