Database Part 1 Flashcards

1
Q

Outline what data is(2)

A

Can be several different types (numeric, text, boolean, etc) but only contains RAW FACTS

Unprocessed + no context

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

Outline what information is (3)

A

Information = Data + context

Information is interpreted by the user

It is processed and structured

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

What is a database? (3)

A

Organised collection of interrelated data connected to a specific topic

Database is created and stored by a piece of software called DBMS

Can use queries to store, retrieve, delete, or edit data in databases written in SQL

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

What is an information system? (3)

A

Organised system for collection, organisation, storage and communication of INFORMATION

Made up of 6 components: hardware, software, data, people, network, and process

Wider term than database (it refers to a complete system)

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

Why use a database?

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

Define database transactions (2)

A

multiple operations that are executed sequentially that all serve as a single logical unit of work

Database transactions follow the ACID principles

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

Explain database transactions (3)

A

When a database transaction is in flight, the database state may be temporarily inconsistent

But when the transaction is COMMITTED, the changes are applied.

Transaction can only be committed if there are no errors. If there is an error, the database transaction is reverted.

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

What does ACID refer to?(4)

A

Atomicity - All tasks in a transaction are performed successfully. Otherwise, the transaction is fully aborted and reverted to former state

Consistency - Data cannot be written that would violate the databases’ own rules for valid data

Isolation - No transactions interfere with each other

Durability - Ensure result/effect of a committed transaction persists in case of a system failure

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

How is isolation ensured in transactions? (2)

A

Data is locked for the moment when the transaction is carried out.

Transaction log is created prior to the transaction to allow rollbacks (preparation for an error occuring)

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

What is data integrity (3)

A

Refers to 3 things:
- Accuracy - The correct data and relationships are retained and preserved
- Completeness - All necessary data is available
- Consistency

Data integrity is imposed during database design phase

Data integrity is maintained through various error-checking methods and validation procedures

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

Explain what concurrency is (3)

A

Process of managing conflicts with simultaneous transactions at the same time. Allows multiple users to affect multiple transactions.

Prevents access by more than one user by locking the contents.

Database concurrency forces ‘sequential updates’ (update to the same piece of data is controlled)

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

Define data validation

A

Checks that input matches the expected values in a database

Data validation rules are used in data validation process to ensure validity

Examples: Presence, type, length, format check

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

Define data verification

A

Checks that the user does not make a mistake when inputting data

Examples: double keying, 2 phase login

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

Main difference between data validation and data verification

A

Data validation is done on original document whereas data verification is done on copies.

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

What is a query function (2)

A

A query = request for data from a database

Data requested by query may be generated as results returned by SQL, pictorials, or graphs

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

What is an update function (2)

A

ADD, DELETE, UPDATE are all functions that can be performed on a database

UPDATE function is used to modify the existing records in a table

17
Q

Beneficial functions of DBMS in real life context (4)

A

Acts as an interface between the user’s view and waay in which data is actually held

Allows users to store/restore/update information

Provides ability to recover database in the event of system failure

Protects from data theft