1.3.2 Databases Flashcards

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

What is a primary key?

A

A field that uniquely identifies a record in a table

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

What is a foreign key?

A

The linking field in a foreign table, formed when a relationship between 2 databases is formed. The Foreign Key becomes the Primary Key of the new table

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

What is a secondary key?

A

An index field other than the primary key used to search and sort through the database in a different order or with more speed/convenience

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

What is normalisation?

A

The process of arranging data into tables and setting their relationships to make the best layout for a relational database

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

What is an entity?

A

An entity is an object of interest to an organisation around which data is to be recorded

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

What are the criteria for the 1st normal form?

A
  • All field names must be unique
  • Values in fields must be from the same domain
  • Values in fields must be atomic
  • No 2 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

What is a composite key?

A

A combination of 2 or more fields that can be used to uniquely identify each record

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

What are the criteria for 2nd normal form?

A
  • Data is already in 1st normal form
  • Partial dependencies are removed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a partial dependency?

A

When one or more fields depend on only part of the primary key (normally when the primary key is composite)

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

What are the criteria for 3rd normal form?

A
  • Data is already in 2nd normal form
  • Transitive dependencies are removed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a transitive dependency?

A

Where the value of a field is determined by the value of another field that is not part of the primary key

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

What is an index?

A

A data structure used to look up and access data in the database quickly

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

What is referential integrity?

A

A process for ensuring consistency of the data in a database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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
15
Q

What does Atomicity mean in ACID?

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

What does consistency mean in ACID?

A

A transaction must maintain referential integrity rules between linked tables

17
Q

What does isolation mean in ACID?

A

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

18
Q

What does durability (in ACID) mean?

A

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

19
Q

What is record locking?

A

Process of preventing simultaneous access to a record

20
Q

What is redundancy?

A

The process of creating more than one copy of data in a physically different location

21
Q

What is record locking?

A

Record locking is the process of preventing simultaneous access to a record