Database Integrity and Keys Flashcards

1
Q

Entity Integrity

A

Entity Integrity: Ensures that each row in a relational database table is uniquely identified by a primary key, and no attribute in that primary key contains a null value.

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

Domain Integrity

A

Domain Integrity: Enforces valid entries for a given column by defining a domain, which is the set of permissible values for that column.

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

Referential Integrity

A

Referential Integrity: Ensures the consistency between tables by enforcing relationships between tables through foreign keys. It guarantees that foreign key values refer to existing primary key values.

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

Candidate Key

A

Candidate Key: A candidate key is a set of one or more attributes that can uniquely identify a tuple in a relation. It is a candidate for becoming a primary key.

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