Scenario: A social media platform tracks users and their posts. Each user can have multiple posts, and each post can have multiple comments. How would you model this relationship in an ERD?

  • Many-to-Many
  • Many-to-One
  • One-to-Many
  • One-to-One
The appropriate relationship for this scenario is Many-to-Many. Each user can have multiple posts, and each post can have multiple comments from different users. It reflects the complex interactions between users, posts, and comments on a social media platform.
Add your answer
Loading...

Leave a comment

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