Relational model Flashcards
Relation
Table with columns and rows
Attribute
Named column of a relation
Tuple
Row of a relation
Domain
Set of allowable values for one or more attributes
Degree
Number of attributes a relation contains
Cardinality
Number of tuples a relation contains
Intension
Structure of the relation including its domains
Extension
Set of tuples currently in the relation
Superkey
Set of attributes that uniquely identifies a tuple in a relation
Candidate key
Minimal set of attributes that uniquely identifies a tuple in a relation
Primary key
Candidate key designated as the distinguishing key of a relation
Foreign key
Set of attributes in one relation referring to the primary key of a relation
Domain constraint
Every value of an attribute must be an element of the attribute’s domain or be null
Entity integrity constraint
No attribute of a primary key can be null
Referential integrity constraint
If a foreign key exists in a relation, then the foreign key value must match a primary key value of a tuple in the referenced relation or be null