Databases Flashcards

1
Q

What is a relational database?

A

A database which recognises the difference between entities and uses different tables for entity.

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

What is an entity?

A

An item of interest about which information is stored.

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

What is a flat file?

A

A database that consists of a single file, usually about one entity.

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

What is a foreign key?

A

The attribute which links two tables together.

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

What is 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
7
Q

What is normalisation?

A

Process if coming up with the best layout for a relational database.

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

What does normalisation try to accomplish?

A
  • No redundancy
  • Consistent data throughout linked tables
  • Record can be added and removed without any issues
  • Complex queries can be carried out
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an index?

A

Data structure used to look up and access data in database quickly.

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

Is the primary key automatically indexed?

A

Yes

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

What does capturing data mean?

A

Process of getting the information you wish to use

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

What method do banks use to capture data from cheques?

A

They use Magnetic Ink Character Recognition (MICR) to get all the details apart from the amount which must be entered manually.

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

What does selecting data mean?

A

Process of reducing excess information to obtain only data you require.

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

What does managing the data mean?

A

To manipulate the information in any type of way such as sorting through it or selecting certain parts using SQL.

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

What is the most common language to manipulate databases in?

A

SQL

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

What are the requirements to be in First Normal Form (1NF)?

A

No attribute that contains more than a single value in a cell.

17
Q

What are the requirements to be in Second Normal Form (2NF)?

A
  • Database is in 1NF
  • There are no partial key dependencies
18
Q

What are the requirements to be in Third Normal Form (3NF)?

A
  • Database is in 2NF
  • There are no non-key dependencies
19
Q

What does SQL stand for?

A

Structured Query Language

20
Q

What is SQL?

A

A declarative language used to manipulate databases.

21
Q

What is referential integrity?

A

Process of ensuring consistency as it makes sure that information is not removed if it’s requires elsewhere in a linked list.

22
Q

What is a transaction defined as?

A

A single operation executed on data.

23
Q

What does ACID stand for?

A
  • Atomicity
  • Consistency
  • Isolation
  • Durability
24
Q

What does atomicity mean in ACID?

A

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

25
What does consistency mean in ACID?
A transaction must always maintain referential integrity rules between linked tables.
26
What does isolation mean in ACID?
Simultaneous execution of transactions should lead to the same result as if they were executes one after the other.
27
What does durability mean in ACID?
Once a transaction has been executes it will remain so regardless of the circumstances.
28
What is record locking?
Process of preventing simultaneous access to a record.
29
What is the name of an issue that can arise as a result of record locking?
Deadlock
30
What is redundancy?
The process of creating more than one copy of data in a physically different location.