1.3.2 Flashcards

1
Q

What is an entity?

A

An item which data is stored about

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

What is a relational database?

A

A database which stores each entity in its own table to identify the differences between them

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

What are attributes?

A

The characteristics of an entity

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

What is a flat file database?

A

The database consists of a single file with one entity

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

What is a primary key?

A

A unique identifier for each record in a table

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

What is a foreign key?

A

Links two tables together (the foreign key of one table is the primary key of another)

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

What is a secondary key?

A

This allows the database to be searched quickly

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

What is normalisation?

A

The process of producing the best possible layout for a database

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

What does normalisation sim to achieve?

A
  • no redundancy
  • consistent data in related tables
  • records can be added/removed
  • complex queries can be carried out
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is first normal form?

A

No attribute contains more than a single value

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

What is second normal form?

A

First normal form and has no partial dependencies (no attribute can depend on sort of a composite key)

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

What is third normal form?

A

Second normal form and has no non key dependencies (No field is dependent on another field which isn’t the primary key)

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

What is indexing?

A

A method of storing the position of each record ordered by a certain attribute

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

What is referential integrity?

A

Ensuring that data is not removed if it is needed elsewhere in a linked database

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

What is a transaction?

A

A single operation executed on data

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

What are the 4 components of ACID?

A
  • atomicity
  • consistency
  • isolation
  • durability
17
Q

What does atomicity mean?

A

The transaction must be processed in its entirety it not at all

18
Q

What does consistency mean?

A

It follows the rules of referential integrity

19
Q

What does isolation mean?

A

Simultaneous transactions should give the same result as if they where executed one after another

20
Q

What does durability mean?

A

Once a transaction is completed, it must remain so

21
Q

What is record locking?

A

Preventing simultaneous access to records to prevent inconsistencies

22
Q

What is redundancy?

A

Storing multiple copies of data in physically different locations to ensure data is not lost or damaged