Advertisement
banner image
Print

ICT

Data validation and verification

Page:

  1. 1
  2. 2
  3. 3
  1. Next

It is very important that data is entered correctly. Validationvalidation : An automatic computer check to ensure that the data entered is sensible and reasonable. and verificationverification : A check to ensure that the data entered exactly matches the original source. are both ways of checking the data that has been entered into a computer.

Validation

Validation is an automatic computer check to ensure that the datadata: information which has been organised or presented for analysis entered is sensible and reasonable. It does not check the accuracy of data.

For example, suppose you type in a secondary school pupil's year of birth. It is likely to be between 1987 and 1993. A year of birth such as 1966 is impossible. The computer can be programmed only to accept numbers between 1987 and 1993. This is a range checkrange check: A check to see that a number isn't too big or too small..

However, this does not guarantee that the number typed in is right. For example, Darren's year of birth might be 1987. If 1993 is entered, then this is valid, but it is not true.

Validation types

There are a number of validation types that can help check the datadata: information which has been organised or presented for analysis that is being entered. They are used in many different ways:

Uses of validation

Validation typeHow it worksExample of use
Check digitThe last one or two digits on a code are used to check the other 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 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 that 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

Page:

  1. 1
  2. 2
  3. 3
  1. Next

Back to Databases index

Explore the BBC

This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.