Chapter Five: Databases Flashcards

1
Q

Explain what is meant by the term ‘validation’.

A

Validation is the process of checking data when it is input. Validation is carried out by software, and not humans, not by humans. It checks that data confirms to certain rules.

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

What is meant by a range check?

A

A number must fall between certain limits.

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

Explain what is meant by the term ‘verification’.

A

Verification is checking that the data being entered is correct. It can be a simple visual check against the source data or an algorithm checks two copies, entered independently, and flags up inconsistencies.

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

What is a digit check?

A

Must be exactly the same as data previously entered. An algorithm calculates an extra digit which is appended to the data. The same algorithm checks data when input.

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

Explain what a DBMS is. (3 marks)

A

DBMS stands for Database Management System. This is software that looks after a database at a fundamental level.

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

What is a database? (3 marks)

A

A database is a structured set of data held in a computer, especially one that is accessible in various ways.

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

What is a flat-file database?

A

This is just rows and columns such as would be suitable for an address book.

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

Explain what a relational database is.

A

Relational databases are the most useful model and consequently the most common type of database. They are far more flexible than other models and can replace other models in most cases.

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

Explain the difference between an entity and a table.

A

In a database, anything about which information can be stored; for example, a person, concept, physical object or event. Whereas a table is where the data is stored. The DBMS provides tools for creating and modifying tables.

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

Describe two ways in which a query can be constructed.

A

Query by example (QBE) uses a graphical interface that lets the user assemble the fields and conditions required for a query.
Alternatively, a query can be built from a query language such as SQL (Structured Query Language). SQL and other query language make it possible to write programs that extract the data required.

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

Name four different data types and give an example for each.

A

Number data: Number of items ordered, given in the form of an integer.
Text data: An invoice amount.
Date/time data: Date started employment.
Yes/no (Boolean): Entered for an exam (or not entered).

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

Describe the difference between the AND operator and the OR operator.

A

The AND operator: Checks that two conditions are true then selects the data that matches these conditions.
The OR operator: Checks that either of two conditions are then selects the data that matches these conditions.

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

What is a transaction?

A

When a change takes place in the database. Transactions must not damage the integrity of the database.

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

Name six validations methods and give their meanings.

A

Length check: Must be below a certain number of characters or be above or below a certain limit.
Type check: No numerals allowed in a surname.
Range check: Date of birth fir a job applicant.
Presence check: Surname when applying for a job.
Lookup check: Check that a password is correct.
Format check: Car registration number must be LL/NN/LLL.

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

Explain what will happen if there is an error in a database.

A

Firstly, it can result in embarrassment such as sending bills to customers who have died. Secondly, it could result in a financial loss, such as if a bank account is wrongly credited or debited. Finally, it can result in life or death situations, such as incorrect navigational data for aircraft.

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

Explain how data is protected against loss.

A

Firstly, by making regular backups, which helps keep the data up to date. Secondly, having a mirror database server so that data is saved in at least two places, which means that if one copy goes missing, there is another copy that is saved. Thirdly, storing backups in a safe place such as in the cloud or otherwise off site. Finally, keeping audit trails of who has accessed the data, so the computer and database is aware of who has accessed it.

17
Q

Explain why it is important to separate the applications from the data.

A

Firstly, programmers do not have to worry that their applications might damage the existing data structures. Secondly, new applications can be written out without having to reconstruct the data. Thirdly, data can be more easily shared more easily between applications. Finally, data remains consistent because there is just one copy for all applications.

18
Q

What is a hierarchical database?

A

A hierarchical database is a design that uses a one-to-many relationship for data elements. Hierarchical database models use a tree structure that links a number of disparate elements to one “owner,” or “parent,” primary record.