1.3.2 Databases Flashcards

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

Define a flat file database?

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

Define 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
3
Q

Define a secondary key?

A

An index other than the primary key used to search and sort through the database with more convenience and speed

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

Define a foreign key?

A

The attribute which links two table together

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

A husband and a wife are an example of what type of relationship?

A

One-to-one

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

Multiple children to a mother is an example of what type of relationship?

A

One-to-many

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

A student to a A-level subject is an example of what type of relationship?

A

Many-to-many

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

What 3 things must happen for a database to be in 1st normal form?

A

All field names must be unique
No two records can be identical
Each table needs a primary key

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

What 2 things must happen for a database to be in 2nd normal form?

A

The database is in 1st normal form
There are no partial dependencies (composite keys)

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

What 2 things must happen for a database to be in 3rd normal form?

A

The database is in second normal form
There are no non key dependencies

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

What is referential integrity?

A

Referential integrity is the process of ensuring consistency as it makes sure that information is not removed if it is required elsewhere in a linked database

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

What does ACID stand for?

A

Atomicity, Consistency, Isolation, Durability

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

What does atomicity mean?

A

A transaction must be processed in its entirety or not at all

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

What does consistency mean?

A

A transaction must maintain referential integrity rules between linked tables

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

What does isolation mean?

A

Simultaneous execution of transaction should lead to the same result as if they were executed one after the other

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

What does durability mean?

A

Once a transaction has a been executed it will remain so regardless of the circumstances

17
Q

What is data reunanct?

A

When the same piece of data is stored in 2 or more times