Database Flashcards

(36 cards)

1
Q

Database

A

A structured collection of information that is stored inside a computer system and can easily be accessed, managed, and updated

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

Data concurrency

A

Instructions happening at the same time

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

Data integrity

A

Maintains accuracy and consistency of data

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

Database transaction

A

a series of changes in a database as a single operation

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

Referential integrity

A

Keeps table links accurate by preventing invalid data

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

1NF

A

All values are atomic, no repeating groups, no multiple columns for the same data

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

2NF

A

Already in 1NF, all non-key attributes are fully dependent on the entire primary key

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

3NF

A

It is in 2NF, all non-key attributes depend on another non-key attribute

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

Normalisation

A

The process of reorganising data to reduce redundancy

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

Data definition language (DDL)

A

Used to deifne and a mange the structure of database and objects

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

Database management system (DBMS)

A

A software that allows users to create, manage, and interact with databases

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

ACID properties A

A

Atomacity - either all is executed or none

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

ACID properties C

A

consistency - ensures errors do not create unintended consequences

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

ACID properties I

A

Isolation - ensures data transactions don’t interfere/ affect others

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

ACID properties D

A

Durability - ensures changes in the data will be saved

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

Database vs information system

A

Informations systems are made up of hardware, software, databases… they organise and analyse data. A database is a structured collection of information that is stored inside a computer system and can easily be accessed, managed, and updated

17
Q

Advantages of centrally stored database

A

Consistent view of the system, centrally updated

18
Q

Relational database management system (RDBMS)

A

A database management system for databases that are represented / related with logical relations

19
Q

Schema

A

The logical structure of the data in the entire database

20
Q

Database abstraction levels (3)

A

Conceptual, logical, physical

21
Q

Physical level

A

How data is physically stored on hardware. Handles file storage, access paths, efficiency

22
Q

Logical level

A

The structure of the entire database. Defines tables, relationships, data types, constraints

23
Q

Conceptual level

A

What users or applications see. Defines user views, hides complexity, controls access

24
Q

Difference between a transaction and operation

A

An operation is simple and done in one instruction while a transaction is more complex and may consist of multiple operations

25
Capabilities supported by DBMS
Creation, manipulations, and interrogation of database
26
Nature of data dictionary
Describes the data in the database, the meaning, the format, the relationship to other data
27
How to improve response time
Normalise the database to avoid redundancy, write optimised SQL queries, and use specific SELECT statements
28
Methods of database recovery
Backups (copies of the data), rollback (removes all unfinished actions), checkpointing (database writes recent changes to the disk)
29
Primary key
Uniquely identifies each record
30
Foreign key
Primary key in another table used to link them
31
Entity
A thing / object represented in a database
32
Attribute
A characteristic of an entity
33
Validation
Checks if data input makes sense through range check or format check
34
Verification
Check if data was entered correctly like double entries or empty fields
35
Advantages of databases
Reduces data redundancy, ensures data integrity, allows concurrent access
36
Types of update anomaly
Insertion and deletion