Week 3 Flashcards
What is a relation?
A table with columns and rows
What is an attribute?
A named column of a relation (table)
What is a domain?
A set of allowable values for one or more attributes.
What is a tuple?
A row
What does ‘degree’ mean?
The number of attributes in a relation (table)
What does ‘cardinality’ mean?
Number of tuples in a relation (table)
What are some properties of database relations?
Relation name is distinct from all other relation names
Each cell in a relation contain one and only one value
Each attribute has a distinct name
There are no duplicate tuples (rows)
Order of attributes have no significance
What is a foreign key?
Is an attribute in one relation that is also a primary key in another relation
What does entity integrity mean?
In a base relation, no attribute of a primary key can be null
What does referential integrity mean?
If a foreign key exists in a relation, either the foreign key value must match the candidate key value of some tuple in its home relation OR foreign key value must be null
What are some functions of a system catalog?
Provides powerful and flexible security
Allows users to access data in a customized way
Can simplify complex operations on base relations