Fundamentals of Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Describe 3NF

A

All attributes rely on the key, the whole key, and nothing but the key.

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

What is a primary key?

A

A unique identifier for each record.

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

Why is a database normalised?

A

To remove redundant data.

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

What steps should be taken to normalise a database from 0NF to 1NF?

A

Eliminate duplicate columns.
Identify a primary key.
Remove any repeating groups of data.
Separate any non-atomic attributes.

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

What is a composite key?

A

Two or more columns in a table that can be used to uniquely identify each row.

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

What steps should be taken to normalise a database from 1NF to 2NF?

A

Remove any partial dependencies by splitting the table.
Fix any many-to-many relationships by creating a linking table.

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

Describe transaction processing

A

Any information processing which is divided into individual, indivisible operations. Each operation must succeed or fail as a complete unit.

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

What does CRUD stand for?

A

Create
Read
Update
Delete

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

In order to ensure data integrity, transaction processing in all database management systems must conform to a set of rules which can recalled using the acronym ACID. What are the ACID rules?

A

Atomicity,
A change to the database must be completely performed or not at all.

Consistency,
Any change to the database must retain the overall state of the database.

Isolation,
A transaction must not be interrupted by another transaction.

Durability,
Once a change is made to the database it must not be lost due to a system failure.

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

How, in practice, is it ensured transactions occur in isolation?

A

Record-locking.
The record(s) being used by the transaction are locked by being placed in a read-only state. The lock is only removed once the transaction is completed.

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

How is it ensured databases don’t lose data due to system failure?

A

Databases write transactions immediately back to permanent secondary storage.

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