Attributes
The properties that determine the entity type are called attributes. for instance, the entity type student properties are Roll No, Name, DOB, Age, Address, and Mobile No. An oval represents an attribute in an ER diagram.
1. Key Attribute: The key attribute is the attribute that uniquely identifies each entity within the entity collection. Roll No, as an example, is unique to every student. An ellipse represents the most character in an ER diagram with underlying lines.
2. Composite Attribute: An attribute that’s made from numerous other attributes is observed as a composite attribute. As an example, within the address of a student, entity type has street, city, state, and country. A composite attribute is represented in an ER diagram by an oval made of ovals.
3. Multivalued Attribute: An attribute that may have different values counting on the thing it applies to. for example, Phone No. (for a selected student, there is also quite one). A multivalued attribute is represented by a double oval on an ER diagram.
4. Derived Attribute: A derived attribute is one that will be derived from other characteristics of the entity type. e.g., age (can be derived from DOB). The derived attribute is represented by a dashed oval within the ER diagram.
Relationship Set and Degree
Relationship Kinds and Sets: A relationship type represents the association between entity types. “Enrolled in,” as an example, may be a relationship type that happens between the entity types “Student” and “Course.” In an ER diagram, the link type is represented as a diamond, with lines linking the entities.
A relationship set could be a collection of relationships of the identical type. the subsequent relationship set demonstrates S1 enrolling in C2, S2 enrolling in C1, and S3 enrolling in C3.
The number of varied entity sets participating in a very relationship set is brought up because of the degree of a relationship set.
Types Of Relationships
1. Unary Relationship – An unary relationship is one during which there’s only 1 entity set involved within the relationship. As an example, one person is married to just one other person.
2. Binary Connection- A binary relationship exists when there are TWO entities involved in a very relationship. For instance, suppose a student is registered in a very course.
3. n-ary Connection- An n-ary relationship exists when there are n entities involved in a every relationship.