1.3.2. Databases Flashcards

1
Q

What is a relational database?

A

a database that 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 which information is stored about

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 idetifier 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 2 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

the process of designing 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 4 things does normalisation try to accomplish?

A
  1. reduce reduncancy 2. make data consistent throughout linked tables 3. records can be added and removed without issues 4. allows complex queries to 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

a data structure used to search and access data in a 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 is the defenition of capturing data?

A

the process of obtaining 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 MICR to get all of 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

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

manipulating the information in any of way, such as sorting 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

there must be no attribute that contains more than a single value in a cell

17
Q

What are the 2 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 key dependecies
19
Q

What does SQL stand for?

A

structured query language

20
Q

What is SQL?

A

a declaritive language used to manipulate databases

21
Q

What is referential integrity?

A

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 single operation executed on data

23
Q

What does ACID stand for?

A

atomicity consitency isolation durability

24
Q

What does atomicity (in ACID) mean?

A

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

25
What does consistency (in ACID) mean?
a transaction must maintain referential integrity rules between linked tables
26
What does isolation in (ACID) mean?
simultaneous execution of transactions should lead to the same result as if they were executed one after the other
27
What does durability (in ACID) mean?
once a transaction has been executed it will remain permanent, regardless of the circumstances
28
What is record locking?
the 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
31
What does MICR stand for?
magnetic ink character recognition