Introduction to database systems 2 Flashcards
What are relational keys?
One or more attributes that are needed to uniquely identify each tuple in a relation.
What are the types of relational keys?
- Primary key
2. Foreign key
What is a super key?
Is an attribute that identifies ea tuple within a relation.
What is a candidate key?
Is an attribute in a relation that can uniquely identify any tuple without referring to any other data
What are alternate keys?
Candidate keys that are not selected to be the primary key.
What are the properties of an attribute that qualifies to be a primary key?
ASK THE TEACHER !!!
What is a foreign key?
An attribute, or set of attributes within one relation that matches a relational key of another relation.
What is a composite key?
A relational key that is made up of more than one attribute.
What is an integrity constraint?
An attribute that is associated with a domain such that the domain defines all acceptable data values that can be held by the attribute.
What are the two types of integrity constraints?
- Entity constraints
- Referential constraints
- General constraints
What is entity constraint?
No attribute of a primary key can be null.
What is referential constraint?
If a foreign key exists in a relation, the foreign key value must match a candidate key value of someplace in its home relation.
What are general constraints?
Additional rules specific to your needs
What are views?
This is the dynamic result of one or more relational operations operating on the base relations to define another relation without changing the original relation.
OR
The foreign key must have a relation with the candidate key in the base relation.