Professional Documents
Culture Documents
Data Validation and Verification
Data Validation and Verification
Validation:
Validation is one way of trying to reduce the number of errors in the data being entered into
your system. Validation is performed by the computer at the point when you enter data. It is the
process of checking the data against the set of validation rules.
Validation aims to make sure that data is sensible, reasonable, complete and within acceptable
boundaries.
Range Check
A range check is commonly used when you are working with data which consists of numbers,
currency or dates/times.
When you begin to set up your new system you will choose the most appropriate data type for
each field.
A type check will ensure that the correct type of data is entered into that field. For example, in a
clothes shop, dress sizes may range from 8 to 18. A number data type would be a suitable
choice for this data. By setting the data type as number, only numbers could be entered e.g. 10,
12, 14 and you would prevent anyone trying to enter text such as ‘ten’ or ‘ten and a half’.
Check Digit
This is used when you want to be sure that a range of numbers has been entered correctly.
There are many different schemes (algorithms) for creating check digits.
For example, the ISBN-10 numbering system for books makes use of 'Modulo-11' division. In
modulo division, the answer is the remainder of the division. For example
The check digit is the final number in the sequence, so in this example it is the final ‘2’.
The computer will perform a complex calculation on all of the numbers and then compare the
answer to the check digit. If both match, it means the data was entered correctly.
Length Check
Sometimes you may have a set of data which always has the same number of characters.
A length check could be set up to ensure that exactly 11 numbers are entered into the field. This
type of validation cannot check that the 11 numbers are correct but it can ensure that 10 or 12
numbers aren't entered.
A length check can also be set up to allow characters to be entered within a certain range.
So you could set a length check for postcode to accept data which has a minimum number of 5
characters and a maximum number of 8.
Lookup Check
For example:
- a car showroom might put the car models into a lookup list
- a vet might list the most popular types of animals that they deal with
Picture/Format Check
You may see this validation technique referred to as either a picture or a format check, they are
the same thing.
Think about a postcode. The majority of postcodes look something like this:
CV36 7TP
WR14 5WB
Replace either of those examples with L for any letter which appears and N for any number that
appears and you will end up with:
LLNN NLL
This means that you can set up a picture/format check for something like a postcode field to
ensure that a letter isn't entered where a number should be or a number in place of a letter.
Example 2
A National Insurance number must be in the form of XX 99 99 99 X. The first two and the last
characters must be letters. The other six characters are numbers. Any format entered
differently to this will be rejected.
Presence Check
There might be an important piece of data that you want to make sure is always stored.
For example, a school will always want to know an emergency contact number, a video rental
store might always want to know a customer's address.
A presence check makes sure that a critical field cannot be left blank, it must be filled in. If
someone tries to leave the field blank then an error message will appear and you won't be able
to progress to another record or save any other data which you have entered.
Verification:
Verification means to check that the data on the original source document is identical to the
data that you have entered into the system. Verification can be performed in two ways; double
entry method, visual check.
Double entry
Think about when you choose a new password, you often have to type it in twice. This lets the
computer check if you have typed it exactly the same both times and not made a mistake. It
verifies that the first version is correct by matching it against the second version.
Whilst this can help to identify many mistakes, it is not ideal for large amounts of data.
Visual check
This saves having to enter the data twice. It can help pick up errors where data has been
entered incorrectly or transposed.
However, it isn’t always that easy to keep moving your eyes back and forth between a monitor
and a paper copy. Also, if you are tired or your eyes feel 'blurry' then you might miss errors.