Question :

Explain the concept of weak entity and strong entity.

Subject

Database Management System

Standard

Computer Science Engineering

Views

593

Asked By

Chakrika

Vedhika
Answer / Solution

In the context of database design, entities are objects or things that exist and are distinguishable within a system. The concepts of weak entities and strong entities are used to describe relationships between entities in a relational database model.

Strong Entity: A strong entity is an entity that can exist independently and has a unique identifier, known as a primary key. It can be identified uniquely on its own, without relying on any other entity.

For example, consider a "Customer" entity in a retail system. Each customer can be uniquely identified by their customer ID. The Customer entity is a strong entity because it has its own unique identifier and can exist on its own in the database.

Also Check : Write advantages and disadvantages of Network Data Model

Weak Entity: A weak entity, on the other hand, is an entity that depends on another entity for its existence. It cannot be uniquely identified by its own attributes alone and requires a relationship with a strong entity to be identified. Weak entities have partial or total key dependencies on strong entities. In other words, a weak entity's primary key includes the primary key of its associated strong entity, in addition to its own attributes. Typically, a weak entity's primary key is a combination of its own attributes and the primary key of the associated strong entity.

For example, consider an "Order Item" entity in an e-commerce system. It cannot exist without being associated with an "Order" entity. The primary key of the Order Item entity may consist of attributes such as the order number and the line number, where the order number is the primary key of the Order entity. The Order Item entity is a weak entity because its existence is dependent on the existence of the associated Order entity.

In summary, a strong entity can exist independently and has its own unique identifier, while a weak entity depends on a strong entity for its existence and has a primary key that includes the primary key of the associated strong entity.

Also Check : What is database abstraction. Explain its levels.

Krishav
Answer / Solution

In database design, the terms "weak entity" and "strong entity" are used to describe the relationship between entities in a database schema. Let me explain each concept along with some examples:

Strong Entity: A strong entity is an entity that exists independently and has a unique identifier, also known as a primary key. It can be stored in a database table on its own, without relying on other entities for its existence. Strong entities have attributes that define their properties. Examples of strong entities include: 

Customer: A customer entity can have attributes such as customer ID, name, address, and phone number. It can be identified uniquely using its customer ID.

Employee: An employee entity can have attributes like employee ID, name, position, and department. Its employee ID can serve as the primary key for identification.

Weak Entity: A weak entity is an entity that depends on another entity for its existence. It cannot be uniquely identified using its attributes alone; instead, it relies on a relationship with a strong entity called the owner entity. Weak entities have a partial key, which is a combination of their own attributes and the primary key of the owner entity. Examples of weak entities include:

Order Item: An order item entity represents a line item within an order. It cannot exist without an associated order entity. Its partial key would include the order number from the order entity and a line item number from the item itself.

Invoice Line: An invoice line entity represents a specific line on an invoice. It depends on the invoice entity for its existence and its partial key would include the invoice number and line item number.

In both examples above, the weak entities rely on their respective owner entities (order and invoice) for identification and association. The relationship between a weak entity and its owner entity is typically represented using a foreign key constraint, where the primary key of the owner entity is included as part of the weak entity's primary key.

It's worth noting that the concepts of weak and strong entities are not mutually exclusive. A weak entity can become a strong entity if it gains independence or if the relationship with its owner entity changes.

Also Check : What are the entities and attributes? Explain them.


Top Trending Questions


Recent Question Update

Explain Domain Key Normal Form DKNF with example.
Explain Project Join Normal Form PJNF with example.
Explain 4nf and 5nf with example.
What is 5nf in DBMS.
What do you mean by 4NF in DBMS. Explain with example.
What is BCNF Boyce Codd Normal Form. Explain it.
What is normalization? Explain 3NF with example.
What is 2NF? How is it achieved.
What is 1NF? How do we achieve it.
What are the different normal forms in DBMS?
Brief Introduction to the Normalization.
Explain multivalued dependencies
What do you mean by lossless join? How can we test it.
What is the meaning of decomposition in DBMS? List its properties.
Explain the closure of attribute sets.
What do you mean by closure of a set of functional dependencies.
Explain the inference rules for functional dependencies in DBMS
What is the Difference between BCNF and 4NF in DBMS.
SQL Full Outer Join Using Left and Right Outer Join and Union Clause
Difference between Natural join and Inner Join in SQL
Define aggregate function in database.
Write the operations which are responsible for database modification.
Explain natural join operation.
Differentiate union, intersection and set difference operations.
Explain fundamental operations of relational algebra with example.
What do you mean by database scheme. Explain with example.
What do you mean by relational algebra?
Explain Aggregation
What do you mean by Generalization and Specialization in DBMS?
Explain superclass and subclass entity types
Describe EER Model?
What is ER Entity relationship Diagram.
What are the entities and attributes? Explain them.
What are keys? Discuss its types.
Define relationship sets.
What do you mean by attributes? Explain its types.
What are the limitations of a database system.
Explain database administrator and its functions
Explain different database system users
What is database abstraction. Explain its levels.
Write advantages and disadvantages of Hierarchical Data Model
Write advantages and disadvantages of Network Data Model
Write advantages and disadvantages of Relational Data Model
What are data models? Explain its types.
Write different applications of a database
What are the advantages and disadvantages of a database system
Explain Database. Explain different types of elements.

Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step-wise in details with better explanations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the questions and answers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories