The Relational Model Flashcards
Domain
the set of allowable values for one or more attributes
Instance
A tuple with values for each field
Degree
Number of attributes it contains
Cardinality
number of tuples it contains
Relations schema
A named relation defined by a set of attribute and domain name pairs.
Superkey
An attribute or set of attributes that uniquely identifies a tuple within a relation. Mya contain additional attributes that are not necessary for unique identification.
Candidate Key
A superkey such that no proper subset is a
superkey within the relation. Need uniqueness and irreducibility.
Entity Integrity
No attribute of a primary key can be null
Entity Integrity
No attribute of a primary key can be null
Referential Integrity
If a foreign key exists in a relation, either the foreign key
value must match a candidate key value of some tuple in
its home relation or the foreign key value must be wholly
null.