1.3.2 Databases pt2 Flashcards

1
Q

Normalisation

A

A process to come up with the best possible design for a database, organising tables so data is not duplicated in the same table or different tables.

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

First Normal Form

A
  1. All field names must be unique
  2. Values in fields should be from the same domain (only contain one piece/type of information)
  3. Values in fields should be atomic (only one piece of information in each field)
  4. No two records can be identical
  5. Each table needs a primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Second Normal Form

A
  1. It should already be in 1NF
  2. Any partial dependencies have been removed (every field is dependent on the primary key)
  3. Any many-to-many relationships should have been removed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Removing partial dependencies

A

Creating a second table for fields which can be inferred from another which isn’t the primary key. Create a linking table with each table’s primary key

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

Third Normal Form

A
  1. The data is already in 2NF

2. Any transitive dependencies have been removed

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

Removing transitive dependencies

A

Create extra tables where the value of a field is determined by another which isn’t the primary key.

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

Normalisation advantages

A

Easier to maintain and manage
No unnecessary duplication of data
Data integrity is maintained
Faster searches and savings in storage (smaller table)

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

EDI

A

Electronic Data Interchange - exchanges data between documents between computer systems, all documents must be in a standard format (can use EDI translation systems)

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

Transaction

A

A single logical operation in a database, may consist of several operations, all of which must be processed.

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

ACID

A

Atomicity, Consistency, Isolation, Durability - ensures the integrity of a database

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

Atomicity

A

Requires that a transaction will be processed in its entirety or not at all

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

Consistency

A

Ensures that no transaction can violate any of the defined validation rules

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

Isolation

A

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
14
Q

Durability

A

Once a transaction has been committed, it will remain so, even after a power cut. The data is held in a buffer

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

Record locking

A

Prevents simultaneous access to objects in a database in order to prevent updates being lost or any inconsistencies.

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

Deadlock

A

Where two users are trying to access the same record, serialism techniques are used to prevent it

17
Q

Timestamp Ordering

A

If the read timestamp of an object is different to when you opened it, another user must have accessed it so the transaction is cancelled

18
Q

Commitment Ordering

A

Orders transactions in terms of their dependencies on one another as well as the time of opening

19
Q

Redundancy

A

Stops systems going down with duplicate hardware in another location, now run on a backup

20
Q

Data integrity

A

Changes are consistent across a database so removing a record removed all references to that record

21
Q

Indexing

A

A method to store the position of each record ordered by an attribute. The private key is automatically indexed but rarely queried