In ER diagrams, dashed ellipses are used to denote-
Derived attributes
Entity-Relationship (ER) diagrams are powerful tools used in database design to visually represent the structure of a database. They show entities (things of interest), attributes (properties of entities), and relationships (how entities are connected). Different shapes and lines are used to represent these components, making the diagram easy to understand.
The question asks about the meaning of dashed ellipses in the context of ER diagrams. Let's break down the common notations used for attributes:
A derived attribute is an attribute whose value can be calculated or derived from other attributes in the database. It is not stored directly in the database but can be obtained when needed from attributes that are stored. Representing them with dashed ellipses indicates that they are not fundamental stored data but are computable.
Example: Consider an entity 'Employee'. An attribute like 'Date of Birth' is a stored attribute. An attribute like 'Age' can be derived from 'Date of Birth' and the current date. In an ER diagram, 'Date of Birth' would be represented by a solid ellipse, and 'Age' would be represented by a dashed ellipse.
It's helpful to compare the dashed ellipse notation with the other options provided to ensure clarity on ER diagram symbols:
| Symbol | Meaning | Description |
|---|---|---|
Rectangle |
Entity Set |
Represents a collection of entities of the same type. |
Double Rectangle |
Weak Entity Set |
An entity set that does not have a primary key of its own and depends on another entity set for its existence. |
Diamond |
Relationship Set |
Represents an association among entity sets. |
Solid Ellipse |
Attribute |
Represents a property of an entity or a relationship. |
Double Ellipse |
Multivalued Attribute |
An attribute that can have multiple values for a single entity instance. |
Dashed Ellipse |
Derived Attribute |
An attribute whose value can be computed from other attribute values. |
Underlined Solid Ellipse |
Key Attribute |
An attribute (or set of attributes) that uniquely identifies an entity within an entity set. |
Based on standard ER diagram notation, dashed ellipses are explicitly used for derived attributes.
Therefore, the dashed ellipses denote derived attributes.
| Symbol | Represents |
|---|---|
Rectangle |
Entity Set |
Diamond |
Relationship Set |
Ellipse (Solid) |
Attribute |
Ellipse (Double) |
Multivalued Attribute |
Ellipse (Dashed) |
Derived Attribute |
Double Rectangle |
Weak Entity Set |
Understanding different types of attributes is crucial for effective database design using ER diagrams. Attributes describe the properties of entities or relationships.
The choice of attribute type and its representation in the ER diagram impacts how the database schema is designed during the mapping phase from the conceptual ER model to the logical relational model.
In an E-R diagram, multivalued attributes are represented by-
Which of the following statements is/are TRUE?
(i) A weak entity set is identified solely by its partial key (discriminator).
(ii) The identifying relationship type between a weak entity type and its owner entity type must have total participation from the weak entity type.
A company is consuming parts in the manufacturing of other products. Each of the part is either manufactured within the company or purchased from the external suppliers or both. For each part, partnumber, partname is maintained. Attribute batchnumber is maintained if the consumed part is manufactured in the company. If part is purchased from external supplier, then supplier name is maintained. Which of the following constraints need to be considered when modelling class/subclass concepts in ERD for the given problem.
In E-R Diagram, derived attributes are represented by-
Given the basic ER and relational models, which of the following is INCORRECT ?