All Exams Test series for 1 year @ ₹349 only
Question

In E-R Diagram, derived attributes are represented by-

The correct answer is

Dashed oval

Understanding Derived Attributes in E-R Diagrams

Entity-Relationship (E-R) diagrams are visual tools used to represent the structure of a database. They illustrate the entities (objects or concepts), their attributes (properties), and the relationships between them.

Attributes describe the characteristics of an entity. In an E-R diagram, attributes are typically represented by ovals connected to the entity rectangle.

Attributes can be classified into different types, including simple, composite, multi-valued, and derived attributes. This question specifically asks about the representation of derived attributes.

What is a Derived Attribute?

A derived attribute is an attribute whose value can be calculated or derived from other attributes in the database. It is not stored explicitly in the database but can be computed when needed.

For example, consider an entity "Employee". The attribute "Date of Birth" might be stored. From "Date of Birth", we can calculate the "Age" of the employee. "Age" is a derived attribute because its value depends on the current date and the stored "Date of Birth".

Representing Derived Attributes

In E-R diagrams, derived attributes have a specific graphical representation to distinguish them from stored attributes.

  • Simple attributes (like Name, Salary) are shown using a solid oval.
  • Composite attributes (like Address, which can be broken into Street, City, State) are shown as an oval connected to other ovals representing its components.
  • Multi-valued attributes (like Phone Numbers, where an employee can have multiple) are shown using a double oval.
  • Derived attributes are represented using a dashed or dotted oval.

The dashed oval indicates that the attribute's value is not directly stored but is derived from other data. This helps database designers understand which attributes need calculation logic rather than direct storage space.

Analyzing the Options

Let's look at the given options in the context of E-R diagram notation:

  1. Diamond: Diamonds represent relationships between entities.
  2. Dashed oval: A dashed or dotted oval is the standard notation for representing derived attributes in an E-R diagram.
  3. Double oval: A double oval represents multi-valued attributes.
  4. Rectangle: Rectangles represent entities (entity sets).

Based on the standard E-R diagram notation, a derived attribute is represented by a dashed oval.

ER Diagram Symbols Summary
Symbol Represents
Rectangle Entity Set
Diamond Relationship Set
Oval Attribute
Dashed Oval Derived Attribute
Double Oval Multi-valued Attribute
Oval with underline Key Attribute

Therefore, the correct representation for derived attributes in an E-R diagram is a dashed oval.

Revision Table: Key E-R Concepts

Quick Review of ER Diagram Components
Component Notation Description
Entity Rectangle A real-world object or concept (e.g., Student, Course).
Attribute Oval Property of an entity (e.g., Name, ID).
Relationship Diamond Association between entities (e.g., Student ENROLLS Course).
Derived Attribute Dashed Oval Attribute calculated from others (e.g., Age from DOB).
Multi-valued Attribute Double Oval Attribute that can have multiple values (e.g., Phone Numbers).
Key Attribute Oval with underline Attribute that uniquely identifies an entity (e.g., Student ID).

Additional Information: Why Derived Attributes?

Representing derived attributes explicitly in the E-R diagram, even though they are not stored, serves several purposes:

  • It shows that the information is available, even if not directly stored.
  • It clarifies the dependencies between attributes – which attributes are used to compute others.
  • It can sometimes aid in understanding potential queries or reports that might be needed from the database.
  • Deciding whether to store a derived attribute or calculate it on the fly is a design decision often related to performance vs. storage trade-offs. The E-R diagram helps document the nature of the attribute.

Understanding these different notations is crucial for correctly interpreting and creating E-R diagrams, which are fundamental in database design.

Was this answer helpful?

Important Questions from ER Model

  1. In an E-R diagram, multivalued attributes are represented by-

  2. 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.

  3. 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.

  4. Given the basic ER and relational models, which of the following is INCORRECT ?

  5. Relations produced from E - R Model will always be in ______

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App