Database Flashcards

1
Q

Data integrity

A

Entity integrity: each set of data must be uniquely identified

Domain integrity: each field should adhere to the same format and definition

Referential Integrity: Foreign keys should point to existing primary key values

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

Data Redundancy

A

Situation where an identical field is repeated in two or more records

Can potentially lead to data anomalies and corruption and hence should be avoided

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

Data Dependency

A

Where data in different tables are related to each other

Occurs when one of the fields in the table leads the system to another table so that more information may be extracted from the same set of data

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

SQL vs NoSQL

A

Structured vs Unstructured
Strict vs Flexible
Scales up vs Scales out

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

Structured vs Unstructured

A

each field has a fixed data type
each record has the same fields

vs

not

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

Strict vs Flexible

A

Schema is difficult to change (due to defined constraints)
Maintains strict data integrity

vs

Allows hierarchical data storage (differentiating between fast and slow storage devices)

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

Scales up vs Scales out

A

Difficult to check constraints across multiple servers
Needs more powerful machine

vs

Collection can be split across multiple servers

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