How are composite attributes represented in an ERD?

Composite attributes in an Entity Relationship Diagram (ERD) are represented as oval shapes divided into sub-parts.

In an ERD, attributes are the properties or characteristics of entities. These attributes are represented by oval shapes. When an attribute is composite, it means that it can be divided into smaller sub-parts, each representing a more basic attribute with its own meanings. For example, an attribute like 'Address' could be a composite attribute, as it can be divided into 'Street', 'City', 'Postcode', and 'Country'.

To represent a composite attribute in an ERD, you would draw an oval for the main attribute, and then draw lines from this oval to additional ovals for each of the sub-parts. Each of these sub-part ovals would be labelled with the name of the sub-attribute. This visually shows that the main attribute is made up of these smaller parts.

It's important to note that composite attributes are not always necessary or useful in an ERD. They are most useful when you need to show that an attribute is made up of several distinct parts, each of which could be useful or meaningful on its own. However, if the sub-parts of an attribute are not meaningful on their own, or if they would not be used separately, then it may be simpler and clearer to represent the attribute as a single, non-composite attribute.

Understanding the broader context of data and databases, including how data is structured and managed, can deepen one's comprehension of why and how composite attributes are utilised. For a deeper dive into data structures, you might explore pages on data and databases and database models.

Additionally, understanding the distinctions between different types of data storage systems, such as relational databases versus file-based systems, can provide valuable insights into why ERDs and particularly composite attributes are designed in a certain way.


A-Level Computer Science Tutor Summary: In an ERD, composite attributes are shown as ovals divided into sub-parts. Each sub-part represents a smaller, meaningful part of the main attribute. For example, 'Address' can be broken down into 'Street', 'City', 'Postcode', and 'Country'. Composite attributes are useful for showing detailed data structure but aren't always necessary if the parts don't have separate meanings.

Study and Practice for Free

Trusted by 100,000+ Students Worldwide

Achieve Top Grades in your Exams with our Free Resources.

Practice Questions, Study Notes, and Past Exam Papers for all Subjects!

Need help from an expert?

4.93/5 based on546 reviews

The world’s top online tutoring provider trusted by students, parents, and schools globally.

Related Computer Science a-level Answers

    Read All Answers
    Loading...