Data Bases 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

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

What is the most common language used to
manipulate data in databases

A

SQL

14
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.

15
Q

What are the requirements to be in the third normal
form?

A
  • The database is in second normal
    form.
  • There are no non-key dependencies
16
Q

What does SQL stand for?

A

Structured Query Language

17
Q

What is SQL?

A

A declarative language used to
manipulate databases.

18
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.

19
Q

What is a transaction defined as?

A

A transaction is a single operation
executed on data.

20
Q

What does ACID stand for?

A

Atomicity, Consistency, Isolation,
Durability

20
Q

What does Atomicity (in ACID) mean?

A

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

21
Q

What does consistency (in ACID) mean?

A

A transaction must maintain referential
integrity rules between linked tables.

22
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.

23
Q

What does durability (in ACID) mean?

A

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

24
Q

What is record locking?

A

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

25
Q

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

A

Deadlock

25
Q
A
25
Q

What is redundancy?

A

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

26
Q
A
27
Q
A