Home Validation and Verification
Post
Cancel

Validation and Verification

Lesson Objectives:

  • Explain what verification is and why it is used.
  • Create a database that is fully validated.
  • Discuss what validation is and how it helps to reduce human error.

Validation and verification are two ways to check that the data entered into a computer is correct. Data entered incorrectly is of little use.

Validation

Validation is an automatic computer check to ensure that the data entered is sensible and reasonable. It does not check the accuracy of data. For example, a secondary school student is likely to be aged between 11 and 16. The computer can be programmed only to accept numbers between 11 and 16. This is a range check.

However, this does not guarantee that the number typed in is correct. For example, a student’s age might be 14, but if 11 is entered it will be valid but incorrect.

Types of validation

There are a number of validation types that can be used to check the data that is being entered.

Validation typeHow it worksExample usage
Check digitThe last one or two digits are correctBar code readers in supermarkets use check digits
Format checkChecks the data is in the right formatA National Insurance number is in the form LL 99 99 L where L is any letter and 9 is any number
Length checkChecks the data isn’t too short or too longA password which needs to be six letters long
Lookup tableLooks up acceptable values in a tableThere are only seven possible days of the week
Presence checkChecks that data has been entered into a fieldIn most databases a key field cannot be left blank
Range checkChecks if a value falls within the specified rangeNumber of hours worked must be less than 50 and more than 0
Spell checkLooks up words in a dictionaryWhen word processing
This post is licensed under CC BY 4.0 by the author.