Validation and Verification : Type Check

A type check is a validation check which most databases perform automatically on all entered data. When a database is created each field in the database is given a type. Whenever data is entered into a field the database will check that it is of the correct type, e.g. alphabetic or numeric. If it is not then an error message will be displayed and the data will have to be re-entered. Here are some example field names and appropriate types.

Field Name Type Valid Data Invalid Data
Date of BirthDate11/03/9630/02/76, fred
SexAlphabeticMale, Female, Albert123, WA2
Shoe SizeNumeric12, 2.3, 123236G, house
PostcodeAlphanumericW12 6BD 

Notice that a type check is not a very good validation check. Many of the entries in the Valid Data column in the table pass the type check but are clearly incorrect.

GCSE ICT Companion 04 - (C) P Meakin 2004