Skip to content
TechToolsHQ
NewsReviewsGuidesTech 101Tech SeriesToolsNewsletter
TechToolsHQ

Independent, research-driven tech coverage — breaking news, in-depth reviews, buying guides, and technical tutorials to help you understand and choose with confidence.

Explore
NewsReviewsGuidesTech 101Tech SeriesFree Tools
Legal
About UsOur AuthorsContact UsPrivacy PolicyTerms of ServiceCopyright & DMCAAffiliate DisclosureEditorial PolicyAdvertise With Us

© 2026 TechToolsHQ. All rights reserved.

Tech Series/Database Management System/Attributes in an ER Diagram: The 6 Types Explained
Database Management System · Part 5 of 6

Attributes in an ER Diagram: The 6 Types Explained

Part 5 of the DBMS series: simple, composite, single-valued, multi-valued, derived, and key attributes — with ER notation for each.

By Himanshu Bhatt· 3 min read· October 2, 2026

Attributes of an ER Diagram — article cover.
Key Takeaways · TL;DR
  • An attribute is a property that describes an entity; in an ER diagram it is drawn as an oval joined to the entity rectangle.
  • A simple attribute cannot be divided; a composite attribute breaks into sub-attributes (Name into First, Middle, Last).
  • A single-valued attribute holds one value; a multi-valued attribute can hold several and is drawn as a double oval.
  • A derived attribute is computed from another attribute (Age from DOB) and is drawn as a dashed oval.
  • A key attribute uniquely identifies each entity in the set and is shown by underlining its name.
  • These are three independent properties plus the key designation, so one attribute can be several at once.
☰ On this page(show)(close)
  • 1.What is an attribute?
  • 2.The six types of attributes
  • 3.Simple and composite attributes
  • 4.Single-valued and multi-valued attributes
  • 5.Derived attributes
  • 6.Key attributes
On this page
  • 1.What is an attribute?
  • 2.The six types of attributes
  • 3.Simple and composite attributes
  • 4.Single-valued and multi-valued attributes
  • 5.Derived attributes
  • 6.Key attributes
INFO

In Part 2 we saw that an ER diagram is built from three things: entity sets, attributes, and relationship sets. This part zooms in on attributes — what they are, the six types you will meet, and how each one is drawn.

What is an attribute?

An attribute is a property that describes an entity. If an entity is a single student, then that student's Roll_no, Name, Age, and Gender are its attributes — the pieces of information we store about it. In an ER diagram, the entity set is drawn as a rectangle and each of its attributes is drawn as an oval joined to that rectangle by a line.

The Student entity set as a rectangle with six attribute ovals: Roll_no underlined as the key, Name, DOB, Gender, Age as a dashed oval derived from DOB, and Mobile_no as a double oval because it is multi-valued.
The Student entity set and its attributes. Roll_no is underlined (the key), Age is dashed (derived), and Mobile_no is a double oval (multi-valued).
●ATTRIBUTES OF THE STUDENT ENTITY
Student
has attribute
Roll_no
  • •Roll_no is the key attribute, so it is underlined.
  • •Name, DOB and Gender are drawn as plain ovals.
  • •Age is derived from DOB, so it is drawn as a dashed oval.
  • •Mobile_no can hold several numbers, so it is drawn as a double oval.

The six types of attributes

Attributes are grouped by how they behave. There are six common types: simple, composite, single-valued, multi-valued, derived, and key. It helps to know that these describe different properties rather than six separate boxes — so one attribute can be several of them at the same time. Age, for example, is simple, single-valued, and derived all at once. The diagram below shows the notation for each type.

Six types of attributes in an ER diagram: simple oval, composite branching oval, single-valued oval, multi-valued double oval, derived dashed oval, and key underlined oval, each with an example.
The six attribute types and the ER notation used for each.
SIX TYPES OF ATTRIBUTES
Simple attribute: cannot be divided further, e.g. Age.
Composite attribute: divides into sub-attributes, e.g. Name into First, Middle, Last.
Single-valued attribute: holds exactly one value, e.g. Roll_no.
Multi-valued attribute: can hold more than one value, e.g. Mobile_no — drawn as a double oval.
Derived attribute: computed from another attribute, e.g. Age from DOB — drawn as a dashed oval.
Key attribute: identifies an entity uniquely, e.g. Roll_no — underlined in the diagram.

Simple and composite attributes

A simple (or atomic) attribute cannot be divided into smaller parts — Roll_no, Age, and Gender are simple because each is already a single, whole value. A composite attribute can be split into smaller sub-attributes. Name is composite because it divides into First_name, Middle_name, and Last_name, and Address is composite because it divides into Street, City, State, and Country.

  • Simple attribute: cannot be divided further — for example, Roll_no, Age, Gender.
  • Composite attribute: divides into sub-attributes — for example, Name (First, Middle, Last) or Address (Street, City, State, Country).
Two composite attributes: Name branching into First_name, Middle_name, Last_name; and Address branching into Street, City, State, Country.
Two composite attributes — Name and Address — each breaking into its own sub-attributes.
●COMPOSITE ATTRIBUTE
Name
breaks into
Sub-attributes
  • •A composite attribute is one attribute made of smaller sub-attributes.
  • •Name breaks into First_name, Middle_name and Last_name.
  • •Address is another example: Street, City, State, Country.
  • •Each sub-attribute is drawn as its own oval joined to the parent.

Single-valued and multi-valued attributes

A single-valued attribute can hold only one value for a given entity. A student has exactly one Roll_no, one Date of Birth, and one Gender, so these are single-valued. A multi-valued attribute can hold more than one value for the same entity. A student may have several phone numbers or email addresses, so Mobile_no and Email_id are multi-valued. In an ER diagram, a multi-valued attribute is drawn as a double oval.

  • Single-valued attribute: takes exactly one value per entity — for example, Roll_no, DOB, Gender.
  • Multi-valued attribute: can take more than one value per entity — for example, Mobile_no, Email_id. Drawn as a double oval.

Derived attributes

A derived attribute is one whose value can be worked out from another attribute instead of being stored on its own. Age is the classic example: rather than store a student’s age (which would need updating every year), we store the Date of Birth and compute Age from it whenever we need it. In an ER diagram, a derived attribute is drawn as a dashed oval.

Single-valued Roll_no as a single oval, multi-valued Mobile_no as a double oval, and derived Age as a dashed oval, each connected to the Student entity.
Single-valued (single oval), multi-valued (double oval), and derived (dashed oval) attributes side by side.
SINGLE-VALUED VS MULTI-VALUED VS DERIVED
Single-valued: exactly one value per entity, e.g. Roll_no — drawn as a single oval.
Multi-valued: one or more values per entity, e.g. Mobile_no — drawn as a double oval.
Derived: value computed from another attribute, e.g. Age from DOB — drawn as a dashed oval.

Key attributes

A key attribute is an attribute whose value identifies an entity uniquely within its entity set. No two students share the same Roll_no, so Roll_no is a key attribute for the Student entity set. In an ER diagram, a key attribute is shown by underlining its name inside the oval. This is the ER-diagram view of the primary key we met in Part 2.

INFO

Remember that these types describe different things, so they stack. Roll_no is simple, single-valued, and a key attribute all at once; Age is simple, single-valued, and derived. When you label an attribute, ask each question separately: can it be divided, can it hold many values, is it stored or computed, and does it identify the entity?

Attribute typeWhat it meansER notationExample
SimpleCannot be split into smaller partsOvalAge
CompositeMade of smaller sub-attributesOval branching into ovalsName
Single-valuedHolds exactly one valueOvalRoll_no
Multi-valuedCan hold more than one valueDouble ovalMobile_no
DerivedComputed from another attributeDashed ovalAge (from DOB)
KeyUniquely identifies an entityUnderlined ovalRoll_no

With entities, relationships, and now attributes in hand, you can describe exactly what data an ER diagram holds. Next in the series we look at how entities relate in numbers — the cardinality of a relationship.

Drafted with AI assistance from an author outline and edited by TechToolsHQ.

Share
Series: Database Management System

Part 5 — Attributes in an ER Diagram: The 6 Types Explained

Part 5 of 6
← Previous partPart 4 — Participation Constraints in DBMS: Total vs PartialNext part →Part 6 — Converting an ER Diagram to Tables: The Complete Rules

Enjoying the Database Management System series?

TechToolsHQ is an independent, reader-supported tech platform. If this article saved you time, solved a tough problem, or helped you learn a new skill, consider supporting our work. Your support helps us keep our in-depth series 100% free and updated for everyone.

100% optional · Reader supported · Independent researchSupport our work

Don't miss the next deep-dive

Weekly breakdowns of the tools students and builders actually use.

No spam·Unsubscribe any time·Privacy-first