An entity is like a unique object and a set of attributes. Talking about the types of entities, we have a strong entity and a weak entity. A strong entity is independent, whereas a weak entity is reliant on another entity. Let’s explore more differences between a strong and weak entity.
What is a Strong Entity?
A strong entity is an entity that is not dependent on any other entity. It has a primary key, or a table includes a primary key.
What is a Weak Entity?
Unlike a strong entity, a weak entity is not independent as it is reliant on another strong entity. It has to rely on other entities to ensure its existence.
Difference between Strong and Weak Entity
S.No. | Strong Entity | Weak Entity |
1 | It is independent in nature. | It depends on another strong entity. |
2 | It has a primary key. | It does not have any primary key. |
3 | It is depicted by a sole rectangle. | It is depicted by a dual rectangle. |
4 | The connection between two strong entities is shown by a sole diamond. | The connection between a weak and a strong entity is shown by a dual diamond. |
Keep learning and stay tuned to BYJU’S to get the latest updates on GATE Exam along with GATE Eligibility Criteria, GATE 2024, GATE Admit Card, GATE Application Form, GATE Syllabus, GATE Cutoff, GATE Previous Year Question Paper, and more.
Comments