!ntegrity and ACID (1.3.2 e/f) Flashcards

1
Q

Referential integrity requires…

A

that if a foreign key is added to a table and a value is entered into a foreign may field the value must exist in the primary key field of another table

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

Referential integrity foreign key can be..

A

null to signify that there is no relationship
if null values are not allowed then there must be related record

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

What is data integrity?

A

refers to maintaining and ensuring the reliability of data in terms of its accuracy completeness and consistency over its life cycle

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

What is referential integrity?

A

refers to the accuracy and consistency of data within a relationship

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

Data integrity

A

about ensuring that data is guaranteed to be correct
entity integrity
domain integrity

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

What is entity integrity?

A

stipulates that every table must ave a primary key
the primary key for every record of a table must have a unique value and can not be null

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

What is domain integrity?

A

means that every attribute in a relational database is associated with a domain

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

Maintaining integrity - cascade delete

A

use cascade delete when removing a record from a database
ensures that if a record is removed from a table all references to that record are removed from every other table as well

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

Maintaining integrity - record locking

A

prevents other users from making changes to a record while you are editing it
prevents data being lost or immediately overridden by accident
can cause deadlock which can be solved by deleting a transaction to clear it

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