Attributes

In this lesson, we discuss the different types of attributes present in an ER diagram.

Attributes

As stated in the previous lesson, each entity is described by a set of attributes. For example, the EMPLOYEE entity has attributes Name, Address, and Salary, etc.

Each attribute has a name, is associated with an entity, and has a range of values it is allowed to take (an employee’s salary cannot be negative). However, information about the domain of an attribute is not presented in the ER diagram.

In the entity-relationship diagram shown below, each attribute is represented by an oval with a name inside.

Get hands-on with 1400+ tech skills courses.