Questions tagged [weak-entity]

In a relational database, a weak entity is an entity that cannot be uniquely identified by its attributes alone; therefore, it must use a foreign key in conjunction with its attributes to create a primary key.

In a relational database, a weak entity is an entity that cannot be uniquely identified by its attributes alone; therefore, it must use a foreign key in conjunction with its attributes to create a primary key. The foreign key is typically a primary key of an entity it is related to.

In entity relationship diagrams, ER diagrams a weak entity set is indicated by a bold (or double-lined) rectangle (the entity) connected by a bold (or double-lined) type arrow to a bold (or double-lined) diamond (the relationship). This type of relationship is called an identifying relationship and in IDEF1X notation it is represented by an oval entity rather than a square entity for base tables. An identifying relationship is one where the primary key is populated to the child weak entity as a primary key in that entity.

In general (though not necessarily) a weak entity does not have any items in its primary key other than its inherited primary key and a sequence number. There are two types of weak entities: associative entities and subtype entities. The latter represents a crucial type of normalization, where the super-type entity inherits its attributes to subtype entities based on the value of the discriminator.

When sub-type relationships are rendered in a database, the super-type becomes what is referred to as a base table. The sub-types are considered derived tables, which correspond to weak entities. Referential integrity is enforced via cascading updates and deletes.

18 questions
0
votes
1 answer

What is a weak entity? Would a weak entity be found in this example and why?

Are there any weak entities. How can I identify an weak entity. If you do find a weak entity, could you please explain to me why it is a weak entity. How is it that you came to that conclusion? Please let me…
Mishael
  • 1
  • 2
0
votes
1 answer

Specialization of a Weak Entity in ER Diagram Modeling

I've been making ERD for quite some times but, I encountered a unique case now as follows*: Every Account may do a Registration Every Registration requires Acceptance Period Every Registration requires at least 1 Program or more There are 2 kinds…
Logos
  • 334
  • 1
  • 7
  • 17
0
votes
2 answers

Weak entity with unique Number ID

This is a bird-watcher database example. Say if you have three entities, BirdSpecies, Location and Observer. To have an entity Observation, you need all of these three. Without them there is no observation. My understanding is that the requirement…
1
2