hakdog Flashcards
A column or group of columns in a table that uniquely identify every row in that table.
Primary key
Defines the number of entities in one entity set, which can be associated with the number of entities of other set via relationship set.
Cardinality
One entity from entity set A can be associated with at most one entity of entity set B and vice versa.
One-to-one
One entity from entity set A can be associated with more than one entities of entity set B however an entity from entity set B, can be associated with at most one entity.
One-to-many
More than one entities from entity set A can be associated with at most one entity of entity set B, however an entity from entity set B can be associated with more than one entity from entity set A.
Many-to-one
One entity from A can be associated with more than one entity from B and vice versa.
Many-to-many
One entity from A can be associated with more than one entity from B and vice versa.
Many-to-many
Each entity is involved in the relationship. It is represented by double lines.
Total participation
Not all entities are involved in the relationship. It is represented by single lines.
Partial participations
It has the power of expressing database entities in a conceptual hierarchical manner.
ER Model
The process of generalizing entities, where the generalized entities contain in the properties of all the generalized entities. A number of entities are brought together into one generalized entity based on their similiar characteristics.
Generalization
A group of entities is divided into sub-groups based on their characteristics. Take a group ‘person’ for example
Specialization
It is an important feature of generalization and specialization. It allows lover level of entities to inherit the attributes of higher level entities.
Inheritance
The data stored in database, may it be user data or metadata, must be a value of some table cell.
Rule 1: Information Rule
Every single data element (value) is a guaranteed to be accessible logically with a combination of table-name, primary key (row value), and attribute name (column name)
Rule 2: Guaranteed Access Rule