Integrity Constraints Flashcards

1
Q

What does NULL represent?

A

A value of an attribute that is currently unknown or is not applicable for this tuple

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

What is Entity integrity?

A

Every relation must have a primary key. The primary key must not contain NULL values.

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

How is the Entity integrity implemented?

A

Implemented through primary key constraint

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

What is Referential integrity?

A

If a foreign key exists in a relation, either the foreign key must match a candidate key value of some tuple in its home relation OR the foreign key values must be wholly NULL

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

How is Referential integrity implemented?

A

Implemented through foreign key constraint. This ensures that a value in one relation matches a value in another relation

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

What is General constraints?

A

Additional rules specified by users or database administrators that the data must satisfy

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

What are some examples of General constraints?

A

Unique constraints (all attribute values must be unique)
Not null constraint (attributes can’t contain null values)
Default value constraint (a default value is used if no attribute value is provided)
Check constraint (all attribute values must meet a certain condition)

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