SLR 10 Flashcards

Databases (39 cards)

1
Q

What does organising data in a database allow for?

A

Adding, Modification, Deletion, Searching

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

What are electronic databases good for?

A

Makes it easier to backup data and save copies

Can be accessed by multiple people at a time and from many different locations

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

How is data stored in a table

A

Entities/files are stored in records (rows/tuples) and fields (columns/attributes)

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

What is a flat tile database?

A

A simple representation of data on a table

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

Why are large flat tile databases inefficient?

A

If they end up too large they end up inefficient as they are waste space, making them slow and hard to maintain

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

What is a relational database?

A

A database which is split into multiple tables which are all linked together. There should be one common field in all tables for the link to work

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

What is a foreign key?

A

A column which is linked to another column in a linked table

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

What are the 3 types of relationships?

A

One-to-one
One-to-many
Many-to-many

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

How can a database be made useful?

A

Allowing it to query to quickly retrieve information

This is done by keeping an index of primary keys

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

What are the methods of capturing data?

A

Capturing
Selecting
Managing
Exchanging

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

What is a paper based form?

A

A physical sheet of paper you can write on, which can be scanned in order to collect data. This is done using Optical Character Recognition (OCR)

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

What is Optical Character Recognition (OCR)?

A

Scans an image for text symbols into a machine-readable format

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

What is Optical Mark Recognition (OMR)?

A

Used to scan multiple choice tests and lottery tickets, helping reduce human error

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

What is Structured Query Language (SQL) used for?

A

To retrieve data with the following commands:
SELECT
FROM
WHERE

It is developed with Query By Example (QBE) to create statements which are executed against the database to complete the above tasks

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

What can SQL AND QBE do?

A

Specify tables
Specify fields
Specify criteria
Specify output sorting
Using boolean expressions such as NOT, OR, NOT

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

How are tables modified?

A

Using Database Manipulation Language (DML) these can be used:
UPDATE
DELETE
INSERT

17
Q

What does ADBMS do?

A

Prevents the creating of duplicate private keys
Enforcing validation rules
Provides secure access
Provides encryption
Provides program data independence
Manages multiple users

18
Q

What is XML and JSON?

A

They are human-readable and are open formats for structuring data
They’re common standards for storing and transporting data

19
Q

How can data be exchanged?

A

Memory strikes
Optical media
Removable hard disks
Emails
Paper based forms

20
Q

What is an Electronic Data Interchange (EDI)

A

A protocol which faciliates the exchange of data

21
Q

What are the 3 types of standard form?

A

1NF, 2NF, 3NF

22
Q

What rules need to be followed to get 1NF?

A
  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
23
Q

What rules need to be followed to get 2NF?

A
  1. The data is already in 1NF
  2. Any partial independencies must be removed
24
Q

What is a partial independency?

A

Occurs when one primary key determines another attribute

25
What is a dependency?
When one field relies on another field
26
What rules are need to be followed to get 3NF?
1. The data is in 2NF 2. Any transitive dependencies must be removed
27
What is a non-dependency key?
A value of a field which requires the value of another field that isn't a part of the primary key To remove this, get rid of unnecessary data and fields
28
What is a transitive dependency?
When an unrelated column is dependent on another unrelated column
29
What does atomic mean in CS?
A single item of data
30
What does SQL let you do?
Query Data Manipulate data Define data Control data access
31
What SQL commands must you know?
SELECT FROM WHERE LIKE AND OR DELETE INSERT DROP JOIN Look in notes for examples
32
What is data integrity and what is it needed for?
Keeping a database consistent This is needed so the database is always updated for everybody who access is Definition: "The maintenance and consistency of data in a data stored. The data must relfect the reality of what it represents"
33
What is transactional processing?
Any information processing that is divided into individual operations called transactions Each transaction needs to be complete as for everybody else it'll never be partially complete
34
What is CRUD?
The commands: CREATE (INSERT/CREATE) READ (SELECT) UPDATE DELETE
35
What ensures data integrity?
Atomicity Consistency Isolation Durability
36
What does Atomicity mean?
Means a change to a database is either completely performed or not at all
37
What does Consistency mean?
Any change in a database must retain the overall state, so if someone sends another money, they lose it and the other gains it
38
What does Isolation mean?
Means a transaction can't be interrupted by another interruption The current data used in the transaction is made so it can't be accessed
39
What does Durability mean?
Means any change made to a database can't be lost due to a system failure. This is done by writing the effect of a transaction onto a non-volatile secondary storage so it can never be lost