Scenario: A library system manages books and borrowers. Each book can be borrowed by multiple borrowers, and each borrower can borrow multiple books. What type of relationship does this scenario represent, and what are its cardinality and modality?

  • Many-to-Many, Mandatory
  • Many-to-Many, Optional
  • One-to-Many, Mandatory
  • One-to-One, Optional
This scenario represents a Many-to-Many relationship with optional modality. Each book can be borrowed by multiple borrowers (Many), and each borrower can borrow multiple books (Many). The modality is optional because borrowers may not necessarily borrow books, and books may not necessarily be borrowed by borrowers.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *