Databases Flashcards

(50 cards)

1
Q

atomicity definition

A

all transactions should either succeed or fail, and never only partially processed

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

consistency definition

A

each transaction must obey the defined validation rules of the database to maintain referential integrity

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

durability definition

A

once a transaction has begun, it must be completed under all circumstances

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

entity-relationship modelling definition

A

a method of abstractly describing the data tables and the relationship between them visually

they can be used to reduce redundancy and construct a relational database

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

1NF definition

A

first normal form

a table with no repeating attributes

the intersection of each record and attribute produces exactly one value

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

flat file database definition

A

a database where a single table structure is used to store all the data

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

foreign key definition

A

a linking attribute that joins two tables in a relational database by being a primary key in one and a foreign key in the other

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

indexing definition

A

the process of creating an index of primary keys such that the location of any record can be retrieved given its primary key

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

isolation definition

A

no transaction should overwrite other transactions that are simultaneously occurring

the same results must be obtained if transaction that are concurrently or sequentially processed

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

normalisation definition

A

the formal process of optimally designing data tables by reducing data redundancy and repetition by converting them into normal forms

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

primary key definition

A

a unique identifier that identifies each record in a table

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

record locking definition

A

a technique used to prevent simultaneous access to data in a database by locking a record when it is being edited or updated

otherwise, inconsistencies may arise in the database

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

redundancy definition

A

the unnecessary repetition of a field in multiple tables

databases should have redundancy in the form of identical copies if part of the database gets lost and needs to be recovered

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

referential integrity definition

A

the idea of keeping a database consistent by ensuring that any changes made to data or relationships associated with a table are accounted for in all the linked tables

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

relational databases definition

A

a database where separate tables are made for each entity, and relationships between entities are represented by foreign keys

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

secondary key definition

A

a key that can be used as an alternative index to access or sort records in the table in a quicker, but less accurate way than the primary key

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

2NF definition

A

second normal form

a table in 1NF that has data that repeats across multiple records removed and put into a new table with appropriate relationships (no partial dependencies)

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

3NF definition

A

third normal form

a table in 2NF where all attributes that are not the primary key are fully dependent on the primary key (no non-key dependencies)

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

transaction processing

A

the idea of making sure that any logical operation or change in state of a database (transaction) conforms to ACID (atomicity, consistency, isolation, durability) rules for reliable processing

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

what is an entity

A

an item of interest about which information is stored

22
Q

what is a flat file

A

a database that consists of a single file usually about one entity

23
Q

what is a primary key

A

a unique identifier for each record in a table

24
Q

what is a foreign key

A

the attribute which links two tables together

25
what is a secondary key
an index other than the primary key used to search and sort through the database with more convenience and speed
26
what is normalisation
this is the process of coming up with the best layout for a relational database
27
what does normalisation try to accomplish
- no redundancy (unnecessary duplicates) - consistent data throughout linked tables - records can be added and removed without issues - complex queries can be carried out
28
what is an index
an index is a data structure used to look up and access data in database quickly
29
is the primary key automatically indexed
yes
30
what does capturing data mean
capturing data is the process of getting the information you wish to see
31
what method do banks use to capture data from cheques
they use Magnetic Ink Character Recognition (MICR) to get all the details apart from the amount which must be entered manually
32
what does selecting data mean
selecting data is the process of reducing excess information to obtain only the data you require
33
what does managing the data mean
managing the data means to manipulate the information in any type of way as though sorting through it or selecting certain parts using SQL
34
what is the most common language used to manipulate data in databases
SQL
35
what are requirements to be in the first normal form
to be in first normal form there must be no attribute that contains more than a single value in a cell
36
what are requirements to be in the second normal form
- the database is in the first normal form - there are no partial dependencies (no composite keys)
37
what are the requirements to be in the third normal form
- the database is in the second normal form - there are no non-key dependencies
38
what does SQL stand for
Structured Query Language
39
what is SQL
a declarative language used to manipulate databases
40
what is referential integrity
referential integrity is the process of ensuring consistency as it makes sure that information is non removed if it is required elsewhere in a linked database
41
what is a transaction defined as
a transaction is a single operation executed on data
42
what does ACID stand for
atomicity, consistency, isolation, durability
43
what does Atomicity (in ACID) stand for
a transaction must be processed in its entirety or not at all
44
what does consistency (in ACID) stand for
a transaction must maintain referential integrity rules between linked tables
45
what does isolation (in ACID) stand for
simultaneous execution of transactions should lead to the same result as if they were executed one after the other
46
what does durability (in ACID) stand for
once a transaction has been executed it will remain so regardless of the circumstances
47
what is record locking
record locking is the process of preventing simultaneous access to a record
48
what is the name of an issue that can arise as a result of record locking
deadlock
49
what is redundancy
the process of creating more than one copy of data in a physically different location
50