Databases Flashcards

1
Q

Flat File definition

A

A database that consists of a single file.

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

Primary Key:

A

An attribute that is a unique identifier as its value will always be different depending on the object.

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

Foreign Key:

A

An attribute that links 2 tables together

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

Secondary Key:

A

Similar to a primary key but for humans to search quickly

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

Composite Key:

A

A key formed through combining multiple attributes

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

1NF:

A

+ Each field should be unique
+All data types in a field should be seperate (from the same domain)
+Values in fields should be atomic (only 1)
+No 2 records (whole records) should be identical
+ Each table needs a primary key

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

2NF:

A

1NF + No partial dependencies (for composite primary keys only)

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

3NF:

A

Contains no non-key dependencies, each field only depends on the primary key and nothing else

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

How to fix a M-M relationship?

A

Create a new table linking both with both tables primary keys as a composite primary key.

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

Indexing:

A

A method used to store the position of each record by a certain attribute, automatically done on the primary key, secondary keys are indexed as well

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

Data capture methods:

A

Magnetic Ink Character Recognition
Optical Mark Recognition (Multiple choice questions)
Optical Character Recognition

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

What is a Transaction

A

A transaction is a single operation executed on data

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

What is ACID:

A

Atomicity: A transaction must be finished or not at all
Consistency: A transaction must maintain the referential integrity rules between linked tables
Isolation: Simultaneous executions of transactions should lead to the same result as if they were executed one after another
Durability: Once a transaction has been executed, it will remain so regardless of anything

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

Name of the process of preventing simultaneous access to records, when one person is editing a database, another cannot

A

Record Locking

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

What is deadlock

A

When 2 users accessing different databases cannot switch to each others databases as record locking prevents it

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