SLR 10 Flashcards

Databases

You may prefer our related Brainscape-certified flashcards:
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
Q

What is a dependency?

A

When one field relies on another field

26
Q

What rules are need to be followed to get 3NF?

A
  1. The data is in 2NF
  2. Any transitive dependencies must be removed
27
Q

What is a non-dependency key?

A

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
Q

What is a transitive dependency?

A

When an unrelated column is dependent on another unrelated column

29
Q

What does atomic mean in CS?

A

A single item of data

30
Q

What does SQL let you do?

A

Query Data
Manipulate data
Define data
Control data access

31
Q

What SQL commands must you know?

A

SELECT
FROM
WHERE
LIKE
AND
OR
DELETE
INSERT
DROP
JOIN

Look in notes for examples

32
Q

What is data integrity and what is it needed for?

A

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
Q

What is transactional processing?

A

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
Q

What is CRUD?

A

The commands:
CREATE (INSERT/CREATE)
READ (SELECT)
UPDATE
DELETE

35
Q

What ensures data integrity?

A

Atomicity
Consistency
Isolation
Durability

36
Q

What does Atomicity mean?

A

Means a change to a database is either completely performed or not at all

37
Q

What does Consistency mean?

A

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
Q

What does Isolation mean?

A

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
Q

What does Durability mean?

A

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