Introduction to database systems 2 Flashcards

1
Q

What are relational keys?

A

One or more attributes that are needed to uniquely identify each tuple in a relation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the types of relational keys?

A
  1. Primary key

2. Foreign key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a super key?

A

Is an attribute that identifies ea tuple within a relation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a candidate key?

A

Is an attribute in a relation that can uniquely identify any tuple without referring to any other data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are alternate keys?

A

Candidate keys that are not selected to be the primary key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the properties of an attribute that qualifies to be a primary key?

A

ASK THE TEACHER !!!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a foreign key?

A

An attribute, or set of attributes within one relation that matches a relational key of another relation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a composite key?

A

A relational key that is made up of more than one attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an integrity constraint?

A

An attribute that is associated with a domain such that the domain defines all acceptable data values that can be held by the attribute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the two types of integrity constraints?

A
  1. Entity constraints
  2. Referential constraints
  3. General constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is entity constraint?

A

No attribute of a primary key can be null.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is referential constraint?

A

If a foreign key exists in a relation, the foreign key value must match a candidate key value of someplace in its home relation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are general constraints?

A

Additional rules specific to your needs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are views?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly