Wednesday, January 15, 2025
HomeProgrammingTypes of Relationship in DBMS

Types of Relationship in DBMS

In DBMS, relationships represent associations between entities in a database. The primary types of relationships are:

  1. One-to-One (1:1):
    • Each entity in one table is related to one entity in another.
    • Example: A person and their passport.
  2. One-to-Many (1:N):
    • One entity in a table can be related to multiple entities in another.
    • Example: A customer and their orders.
  3. Many-to-Many (M:N):
    • Many entities in one table can relate to many entities in another, often managed using a junction table.
    • Example: Students and courses.
See also  Java Collections class

These relationships define how data is interconnected.

RELATED ARTICLES
0 0 votes
Article Rating

Leave a Reply

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
- Advertisment -

Most Popular

Recent Comments

0
Would love your thoughts, please comment.x
()
x