What is the Difference between Strong and Weak Entity in DBMS?

Learn via video course
FREE
View all courses
DBMS Course - Master the Fundamentals and Advanced Concepts
DBMS Course - Master the Fundamentals and Advanced Concepts
by Srikanth Varma
1000
5
Start Learning
DBMS Course - Master the Fundamentals and Advanced Concepts
DBMS Course - Master the Fundamentals and Advanced Concepts
by Srikanth Varma
1000
5
Start Learning
Topics Covered

An entity in DBMS (Database Management System) is a real-world object that has certain properties called attributes in DBMS that define the nature of the entity. For example, a person is an entity that has properties like name, age, gender, etc. Entities are distinguishable, i.e., each entity in a pair of entities has a property that makes one entity different from the other entity. A strong entity is independent i.e. its existence does not depend on another entity whereas a weak entity is an entity whose existence depends on another entity.

Strong Entity

A strong entity in the schema is independent of all other entities. There will always be a primary key for a strong entity. A strong entity set is a set that is made up of many strong entities.

Representation:

  • A single rectangle is used to represent strong entities.
  • A single diamond is used to represent the relationship between two strong entities.

Example:

Strong Entity Examples

In the above image, we have two strong entities namely Employee and Department hence they are represented using a single rectangle. The relationship between them is works in i.e. it gives information about an employee working in a particular department hence it is represented using a single diamond. In the above image, if we remove the relationship between the two entities then also the two entities will exist i.e. Employee as well as Department will exist since they both are independent of each other, this explains the independent nature of strong entities.

Transform Your Career

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program

Weak Entity

A weak entity in DBMS is an entity whose existence depends on other strong entities and it does not have a primary key of its own.

Representation:

  • A double rectangle is used to represent weak entities.
  • A double diamond is used to represent the relationship between two weak entities.

Example: Let's say a company stores information of dependents i.e. parents, children, etc. of an employee then dependents are a weak entity because if an employee does not exist then dependents also do not exist.

Difference between Strong and Weak Entity in DBMS

S.NoPropertyStrong EntityWeak Enity
1.KeyIt has a primary key.It does have a primary key of its own, it has a foreign key referencing the primary of the strong entity in which it is in a relationship.
2.DependencyIt is independent i.e. its existence does not depend on other entities.Its existence depends on other strong entities.
3.RepresentationIt is represented using a single rectangle.It is represented using a double rectangle.
4.Relationship representationA single diamond is used to represent the relationship between two strong entities.A double diamond is used to represent the relationship between two weak entities.
5.ParticipationIt may or may not participate in a relationship between entities.It always participates in the relationship between entities since its existence is dependent on other strong entities and it always has total participation.
6.ExampleConsider a case of a company, their employee and department are examples of strong entities.In the same company, the dependents of an employee are an example of a weak entity.

Conclusion

  1. An entity in DBMS (Database management System) is a real-world thing or a real-world object that is distinguishable from other objects in the real world. For example, a person is an entity that has properties like name, age, gender, etc.
  2. A strong entity in the schema is independent of all other entities.
  3. A weak entity is an entity whose existence depends on another strong entity
  4. A strong entity is represented using a single rectangle whereas a weak entity uses a double rectangle.
  5. Entity relationship between two strong entities is represented using a single diamond whereas the entity relationship between two weak entities is represented using a double diamond.

Read More:

Hiring Partners:
GoogleGoogleAmazonAmazonMicrosoftMicrosoftFlipkartFlipkartAdobeAdobe1200+ more