Entity Relationships Flashcards
What is an entity
• An entity may be any object, class, person or place.
• In the ER diagram, an entity can be represented as rectangles.
• Consider an organization as an example- manager, product,
employee, department etc. can be taken as an entity.
What is weak entity
a. Weak Entity
• An entity that depends on another entity called a weak entity.
• The weak entity doesn’t contain any key attribute of its own.
• The weak entity is represented by a double rectangle.
Describe attributes
The attribute is used to describe the property of an entity.
• Eclipse is used to represent an attribute.
• For example, id, age, contact number, name, etc. can be
attributes of a student.
Mention types of attributes
Key attribute
Composite
Multivalued
Describe key attributes
a. Key Attribute
• The key attribute is used to represent the main characteristics of an entity.
• It represents a primary key.
• The key attribute is represented by an ellipse with the text underlined.
Describe composite
• An attribute that composed of many other attributes is known as a
composite attribute
What is a multivalued attribute
• An attribute can have more than one value.
W hat is derived entity
• An attribute that can be derived from other attribute is known as a derived
attribute.
What is relationship
• A relationship is used to describe the relation between
entiti
Mention types of keys
Primary key
Candidate key
Super key
Foreign key
Alternate key
Composite key
Artifici key
Describe composite key
Whenever a primary key consists of more than one attribute, it is known as
a composite key.
• This key is also known as Concatenated Key.