Conceptual Database using ER Flashcards
Entity
It is an object in the real world.
Noun is a basis.
Represented by a rectangle
Entity Set
It is a collection of similar entities.
Represented by a rectangle
Relation
It is an association among the entity sets.
Verb is a basis.
Represented using a diamond
Relationship Set
Set of similar relations
Attribute
Which describes an object.
Represented by an oval/ellipse.
Types of Attributes
- Simple attribute
- Composite attribute
- Single valued attribute
- Multi valued attribute
- Stored attribute
- Derived attribute
- Key attribute
- Descriptive attribute
Degree of relationship
Specifies the number of ENTITIES participating in the relationship
Types of relationships
Unary
Binary
N-ary
Participation constraints
- Total Participation
- Partial Participation
Total Participation
Each entity in E must participate in relation R
Mandatory Participation
Double lines
Partial Participation
Each entity in E may or may not participate in relation R
Optional Participation
Single line
Key Constraints
Primary Key Constraints
Foreign Key Constraints
Unique Key Constraints
Cardinality Ratio
One - to - One
One - to - Many
Many - to - One
Many - to - Many
One - to - One
Each entity in A is associated with at most one entity in B and Each entity in B is associated with at most one entity in A
One - to - Many
Each entity in A is associated with zero or many entities in B and Each entity in B is associated with at most one entity in A.