1.3.2 Databases Flashcards

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

what is a database

A

A database is nothing more than an organised collection of data. ​

Organising data into a database allows for easy:​

Adding​

Modification​

Deletion​

Searching​

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

Relational Databases

A

An entity is an item of interest about which information is stored. A relational database is a recognises the differences between entities by creating different tables for each entity

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

Flat File

A

A flat file is a database that consists of a single file. The flat file will most likely be based around a single entity and its attributes.

Very simple, quick to set up, require little expertise to maintain and are suitable for storing small amounts of data.

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

Primary Key

A

A primary key is a unique identifier for each record in the table.

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

Foreign Key

A

A foreign key is the attribute which links two tables together. The foreign key will exist in one table as the primary key and act as the foreign key in another.

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

Secondary Key

A

A secondary key allows a database to be searched quickly.

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

Normalisation

A

Normalisation tries to accomplish the following things:

  1. All field names must be unique
  2. Values in fields should be from the same domain
  3. Values in fields should be atomic
  4. No two records can be identical
  5. Each table needs a primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

First Normal Form

A

There must be no attribute that contains more than a single value.

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

Second Normal Form

A

A database which doesn’t have any partial dependencies and is in first normal form can be said to be in second normal form. This means that no attributes can depend on part of a composite key.

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

Third Normal Form

A

If the database is in second normal form and contains no non-key dependencies, it is in third normal form. A non-key dependency means the attribute only depends on the value of the primary key and nothing else

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

Indexing

A

Indexing is a method used to store the position of each record ordered by a certain attribute. This is used to look up and access data quickly. The primary key is automatically indexed

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

Capturing Data

A

Data needs to be input into the database and there are various ways of doing this. The chosen method is always dependent on the context. For example, if pedestrians are participating in a survey, their responses will need to be manually entered.

Data is also captured when people pay cheques. Banks scan cheques using Magnetic Ink Character Recognition (MICR). Optical Mark Recognition (OMR) is used for multiple choice questions on a test. Other forms use Optical Character Recognition (OCR).

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

Selecting and Managing Data

A

Selecting the correct data is an important part of data preprocessing. This could involve only selecting data that fits a certain criteria to reduce the volume of input. Collected data can be managed using SQL to sort, restructure and select certain sections.

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

Exchanging Data

A

Exchanging data is the process of transferring the data that has been collected. One common example of this is EDI (Electronic Data Interchange).

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

SQL

A

SQL stands for Structured Query Language and is a declarative Synoptic Link language used to manipulate databases. SQL enables the creating, removing and updating of databases.

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

Referential Integrity

A

Referential integrity is the process of ensuring consistency. This ensures that information is not removed if it is required elsewhere in a linked database

17
Q

Transaction Processing

A

A transaction is defined as a single operation executed on data.

18
Q

ACID

A

Atomicity
Consistency
Isolation
Durability

19
Q

Atomicity:

A
  • A transaction must be processed in its entirety or not at all,
20
Q

Consistency:

A
  • A transaction must maintain the referential integrity rules between linked tables,
21
Q

Isolation:

A

Simultaneous executions of transactions should lead to the same result as if they
were executed one after the other.

22
Q

Durability

A

Once a transaction has been executed it will remain so regardless of the circumstances surrounding it, such as in the event of a power cut.

23
Q

Record Locking

A

-The process of preventing simultaneous access to records in a database is called record locking and it is used in order to prevent inconsistencies or a loss of updates.

-While one person is editing a record, this ‘locks’ the record so others cannot access the same record.