You are on page 1of 3

8.5.

2 Worksheet B

1 Examine the database example below.

Identify a suitable validation check for the following fields.


a Quantity
Format check
b StudentNumber
format check

2 Name two additional validation checks that you can apply to data in a
database.

Length check

3 Why is correct data so important in a computer program?


if the data is not correct than the computer problems won't be able to work
properly

4 What does the term clean data mean?


clean data is like fixing an error or detect a error in a data

5 What does the term invalid data mean?


An error data that needs to be fixed

6 The following validation checks have been applied to the database


extract above.

• StudentNumber must be between 100000 and 999999.

• Item can contain only Baseball cap, T-shirt (S), T-shirt (M), T-shirt (L), Hoody
(S), Hoody (M), Hoody (L), Meet and greet 1, Meet and greet 2.
• Quantity must be between 1 and 5 inclusive.

• DateOrder Placed must be entered as dd/mm/yy.

• Paid can contain only Y or N.

• Collected can contain only Y or N.

Add data to the table below to test some of the fields in this database.
REMEMBER: Include examples of correct data, incorrect data and no data
where possible.
Your table should include at least three tests for each data item listed.
(The first three tests have been completed for you.)
Test Field Test type Data item to be
number used for test

1 StudentNumber Presence Leave blank

2 StudentNumber Incorrect data 0

3 StudentNumber Type Student3

4 Item Presence Leave blank

5 Item Incorrect data Meet and greet 3


6 Item Type rcoo

7 Quantity Presence Leave blank

8 Quantity Incorrect data 7

9 Quantity Type Dolphins

10 DateOrder Placed Presence Leave blank

11 DateOrder Placed Incorrect data 6/10/14

12 DateOrder Placed Type Twoctsas4332

13 Paid Presence Leave blank

14 Paid Incorrect data Yes

15 Paid Type 2510

7 Complete the table below to show how StudentNumber could also be


tested to make sure that correct data items can be entered.
Test Field Test type Data item to be
number used for test

1 StudentNumber Presence Leave blank

2 StudentNumber Incorrect data


99999900
3 StudentNumber Type !#@&$^

You might also like