Relational Databases Flashcards

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

What is a Relational Database?

A

A database which recognises the difference between entities and uses different tables for each 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

This is the process of 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 unnecessary duplicates; consistent data throughout linked tables; records can be added and removed without 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

An index is 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
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

Capturing data is the 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

Selecting data is the process of reducing excess information to obtain only the 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

Managing the data means to manipulate the information in any type of way such as through 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 used to manipulate data in databases?

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?

A

To be in first normal form there must be no attribute that contains more than a single value in a cell.

17
Q

What are the requirements to be in second normal form?

A

The database is in first normal form; there are no partial dependencies; no composite keys.

18
Q

What are the requirements to be in third normal form?

A

The database is in second normal form; 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

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.

22
Q

What is a transaction defined as?

A

A transaction is a single operation executed on data.

23
Q

What does ACID stand for?

A

Atomicity Consistency Isolation Durability.

24
Q

What does Atomicity in ACID mean?

A

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

25
Q

What does consistency in ACID mean?

A

A transaction must maintain referential integrity rules between linked tables.

26
Q

What does isolation in ACID mean?

A

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

27
Q

What does durability in ACID mean?

A

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

28
Q

What is record locking?

A

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

29
Q

What is the name of an issue that can arise as a result of record locking?

A

Deadlock.

30
Q

What is redundancy?

A

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