1.3.2 Databases Flashcards

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

In the ACID acronym for transaction processing, what does the A stand for, and what does it mean?

A

Atomicity-
The concept that the components of a transaction are atomic, i.e. indivisible. The whole transaction must succeed or fail.

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

In the ACID acronym for transaction processing, what does the C stand for, and what does it mean?

A

Consistency-

Ensures that an illegal transaction is rejected so that the integrity of the database is upheld.

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

In the ACID acronym for transaction processing, what does the I stand for, and what does it mean?

A

Isolation-

Ensures that each transaction will be isolated and dealt with in a way that does not affect others.

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

In the ACID acronym for transaction processing, what does the D stand for, and what does it mean?

A

Durability-
Ensures that data is saved once a transaction has been completed. Even if there is a hardware failure immediately after a transaction, the data will be safe.

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

What is Serialisation?

A

Serialisation is the concept that, when two or more transactions are executed concurrently, the effect should be the same as if they had been executed serially

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

What is a technique that will allow transactions to be run at the same time, preventing them from interfering with each other?

A

Record locking

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

What does DMBS stand for?

A

DMBS stands for Database Management System, and is essentially nothing more than a computerized data-keeping system

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

What is record locking?

A

Record locking is a common method to allow concurrent transactions. The DBMS will lock the affected record until the update is completed

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

What is deadlocking?

A

Deadlocking is a state in which each member of a group waits for another member, including itself, to take action, such as sending a message or more commonly releasing a lock

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

What can the SQL command SET TRANSACTION do?

A

It can be used to initiate a database transaction

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

What does a COMMIT statement do in transactions?

A

A COMMIT statement will make the changes of a transaction permanent

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

What does ROLLBACK do in transactions?

A

it reverts any interim changes to the point prior to the transaction being started

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

What does SAVEPOINT do in transactions?

A

It creates a save point mid-transactions, meaning the changes can be partially rolled back instead of back to the start

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

What is normalisation?

A

Normalisation is a technique used to help reduce data duplication when designing data structures, also resulting in an improvement in data integrity

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

What is dependancy?

A

A value that varies in line with another value

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

What is the criteria of data being in First Normal Form (1NF)?

A

Each record must have a primary key
The data in each field (column) must be atomic
Each record must have no repeating groups of attributes

17
Q

What is the rule for Second Normal Form? (2NF)

A

The rule for 2NF is no partial dependencies

18
Q

What is the rule of the Third Normal Form? (3NF)

A

There must be no non-key dependencies

19
Q

What is a non-key dependancy?

A

there are no fields that are dependent on other fields that are not part of the key

20
Q

What is a functional dependancy?

A

A set of constraints between two attributes in a relation

21
Q

What is a partial dependency?

A

Partial dependencies arise where a table has a composite key