Relational Model- Integrity Flashcards

1
Q

Database integrity

A

The configuration of data values in a database should reflect reality at any given point in time.
Accurate, consistent, complete (meet data quality standards)

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

Enforcing data integrity

A

Through Integrity rules through
Candidate keys and foreign keys

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

Candidate key

A

A candidate key has both the uniqueness property and the irreducibility property.

Provides the tuple-level addressing mechanism (helps us find the exact tuple we want in a relational system)

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

Uniqueness property

A

No two distinct tuples in the relation have the same value for the candidate key. One primary key.

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

Irreducibility property

A

No proper subset of candidate keys has the uniqueness property

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

Alternate keys

A

If there is more than one candidate key the ones that aren’t chosen as the primary keys are the alternate key

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

Why irreducibility

A

DBMS protects integrity by not allowing inserts of duplicate candidate key values.

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