1.3.2 - Databases Flashcards

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

What is SQL

A

Structured query language.

Declaritive language used for querying, creating and updating tables in relational databases.

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

SELECT…FROM…WHERE…ORDER BY

A

SELECT - Select field(s) to be displayed
FROM - State the table(s) the data will come from
WHERE - State the search criteria/condition
ORDER BY - Sort the result EG. Ascending order

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

List conditions unique to SQL

A

IN - Equal to a value within a set of values
BETWEEN…AND - Within a range defined by the two values
LIKE - Similar to
IS NULL - Field does not contain a value

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

Transaction processing: Define ACID

A

Atomicity
Consistency
Isolation
Durability

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

Explain Atomicity

A

Atomicity requires that a transaction must be processed in its entirety or not at all. Atomicity must gurantee that in any situation, including power cuts or hard dick crashes, it is not possible to process only part of a transaction.

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

Explain Consistency in relation to ACID

A

Ensures that no transaction can violate any defined validation rules for maining the referential integrity of the database.

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

Explain isolation in relation to ACID

A

Ensures that concurrent execution of transactions leads to the same results as if transactions were processed one after the other.

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

Explain durability in relation to ACID

A

Ensures that once a transaction has been committed, it will remain so, even in the event of a power cut.

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

What is record locking, and when is it used?

A

The technique of preventing simultaneous access to objects in a database in order to prevent updates being lost or inconsistencies in the data arising.

In simple terms, a record is locked whenever a user retrieves it for editing or updating.

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

Problems with record locking.

A

If two users are attempting to update two records, a situation can occur in which neither proceed, known as deadlock. EG A bank clerk is trying to transfer money from account A to account B. Another bank clerk is trying to transfer money from account B to account A - both clerks beed access to the other persons account, which is locked.

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

What is redundancy?

A

Maintaining multiple identical systems in different geographical locations, so that every transaction is written to multiple storage facilities. This built-in hardware redundancy protects against loss of data in the event of power failure or other disasters. Back up systems.

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