Databases Flashcards

1
Q

What is a Flat File DB/ what does it do?

A

-Single table with no relationships.
-Each row is known as a record (GCSE)/ an entity (A level).
-Each column is known as a field (GCSE)/ an attribute (A level).
-Used for transactional processing (monthly payments).

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

What are some advantages of Flat File DB?

A

-Simple to set up (don’t need datatypes)
-Sends easily through emails
-Eady to add data to the table

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

What are some disadvantages of Flat File DB?

A

-Redundant data (data that is unnecessarily repeated)
-Takes up additional memory
-Requires more maintenance

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

What is Relational DB?

A

-Data organized into tables that are related to each other (more than one table).

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

What are some advantages of Relational DB?

A

-Can use queries to search for data
-Reduces redundant data (separate tables for each data)
-Apply different permissions to different tables so different users can access different tables

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

What are some disadvantages of Relational DB?

A

-Processing time is slower as link has been created between the tables.

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

What is validation and when does it take place?

A
  • Validation ensures data is sensible and conforms to defined rules (within acceptable boundaries)
  • It is used when data is input into a computer system.
  • When data is valid (conforms to the rules) it is accepted.
    Validation does not ensure data is correct
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the validation rules that can be used in a data base?

A

-Presence
-Range check
-Type check
-Length check
-Format check
-Look up check
-Consistency check
-Check digit

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

What is the validation presence check?

A

It is used to make sure data is entered (if data is not entered, an error message will appear).
*Called required field - cannot be left blank.

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

What is the validation range check?

A

Checks that data is within a defined range. Limit check will check highest or lowest - one boundary. There are 2 boundaries (lower + upper).
*Used when working with numbers, currency, date/time. Symbols: >=<>=«=

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

What is the validation type check?

A

Checks the correct data type has been used.
Age must be an integer, price must be currency etc.

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

What is the validation length check?

A

Endures that data is of a defined length or within a range of lengths.
Password must be 9 characters etc.

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

What is the validation format check?

A

Ensure that data is in a defined form (data has to follow a pattern).
Post code must be LLN NLL.

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

What is the validation look up check ?

A

Checks to see if data is in a list, you only choose off that list. (spreadsheets).

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

What is the validation consistency check?

A

Compares data in one field with another field that already exists - checks to see if both are consistent with each other.
- Male > title Mr ✅ consistent
-Male > title Mrs ❌ not consistent

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

What is the validation check digit check ?

A

-It is a number (or letter) that is added to the end of an identification number being input (it is a form of redundancy check).
-When the identification number is first created, an algorithm (series of calculations) is performed to generate the check digit.
-When the identification number is input, the same algorithm is used.
-The result of the (input) algorithm should match the check digit.