1.3.2 - Databases Flashcards

(24 cards)

1
Q

Relationships

A

One-to-one
One-to-many
Many-to-many

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

Primary Key

A

Unique identifier for a table
Defined underlined
Indexed for quick searching

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

Secondary Key

A

Not a unique identifier but something that is searched frequently so is indexed for ease

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

Foreign Key

A

Field in a table that is the primary key of another table in the relational database
Defined in italics

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

Referential integrity

A

The foreign key in one table must reference the primary key of another table

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

Normalisation

A

Finding best possible design for database

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

Features of normalised database

A

Easier to maintain
No unnecessary duplication of data
Data integrity
Faster searches

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

Features of a table in 1NF

A

All data is atomic
Data within fields are of the same type
Fields have unique names

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

Features of table in 2NF

A

All of 1NF
No partial dependencies

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

Partial dependency

A

Attribute depends only on a part of a composite key rather than the whole thing

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

Properties of table in 3NF

A

All of 2NF
No transitive dependencies

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

Transitive dependency

A

Attribute is only dependent on the primary key, not anything else

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

Methods of capturing data

A

Manual
Automated

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

Methods of transferring data

A

Automatically using DBMS
Using EDI - electronic data interchange -> replaces email/fax

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

Transaction

A

Single logical operation on a database

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

ACID

A

Atomicity
Consistency
Isolation
Durability

17
Q

Atomicity

A

All or none of the transaction is processed

18
Q

Consistency

A

Defined rules of the database cannot be violated

19
Q

Isolation

A

Concurrent execution of different transaction leads to same result

20
Q

Durability

A

Transaction must be processed and saved

21
Q

Record locking

A

Prevents simultaneous access to documents

22
Q

Problem with record locking

A

Deadlock when two or more processes lock a record the other needs so neither can complete

23
Q

Timestamp ordering

A

A transaction can only complete if the most recent open of the database is the same as the user, if not someone else has opened more recently

24
Q

Redundancy

A

Back up copy of data, often stored in a different physical location