31
AS Level ICT Data entry: Validation

AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Embed Size (px)

Citation preview

Page 1: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

AS Level ICT

Data entry: Validation

Page 2: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Validation

• Validation is a check that is carried out during the process of data entry

• It is also the process by which data is accepted as being sensible and reasonable in the context within which it is being used

• Validation is performed by the computer program that is in use, and consists of a series of checks that are called validation checks

Page 3: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Validation checks

• Validation checks are used to restrict the data that can be entered so that it complies with the data rules that have been laid down

• There are several different type of validation check that can be used, each of which has specific uses

Page 4: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Validation checks

• These validation checks include:– Data type checks– Presence checks– Length checks– File/Table lookups– Cross field checks– Range checks

Page 5: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Validation checks

• These validation checks include:– Format checks– Check digits– Parity checks– Spell checkers– Grammar checkers– Custom dictionaries

Page 6: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Data type checks

• Character type checks make sure that the correct type of data has been entered

Example:• A letter has been entered into a database field that

has been pre-set so that only it will only accept numerical data

• The incorrect data type triggers a warning message and will not allow further data to be entered until the error has been corrected

Page 7: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Data type checks

Page 8: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Presence checks

• Presence checks ensure that data that must be entered is entered

Example:• An online application form for a job requires the

applicant to include their National Insurance number

• If that was not entered the presence check would detect this and notify whoever was entering the data

Page 9: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Length checks

• A length check makes sure that the number of characters entered into field matches that fields requirements

Example:• A National Insurance number will have two letters,

followed by six numbers, followed by one letter (e.g. YY232425A)

Page 10: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Length checks

• If this data is entered into a field specially set up to only accept data that is nine characters long, a length check will immediately identify if more or less than that number of characters has been entered

Page 11: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

File/Table lookups

• A lookup table contains a list of valid codes that can be used to enter data

• If a code that is not in the lookup table is entered, it is rejected

• This prevents any incorrect data from being processed

Page 12: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

File/Table lookups

Example:• A data management system for a restaurant uses

lookup tables that contain the codes for each course that can be ordered

Page 13: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

File/Table lookups

Code

Description

Price

Page 14: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

File/Table lookups

• When the unique code is entered, the item description and price are automatically entered

• The system prompts the user to enter a correct code and does do allow incorrect codes to be entered

Page 15: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Cross field checks

• Cross field checks occur when data in one field needs to be checked against data in another field in order for it to make sense

• The simplest forms of cross field checks depend upon the use of check boxes, radio buttons, and/or drop down lists

• In this cases it is simple for the cross field checks to take place

Page 16: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Cross field checks

Example:• The salutation field on a record contains the value

‘Mrs’ but the gender field has been ticked to show the gender is ‘Male’

• The cross field check would identify this anomaly and should flag the record up for checking

Page 17: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Range checks

• Range checks make sure that numerical data falls between pre-determined limits (i.e. within a certain range of numbers)

Example:• Data about a pensioner is being added to a

database• The bottom limit of the age range is 65• If the age is entered as 56, the range check will

display this as an error because the age falls outside the pre-determined limits

Page 18: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Check digits

• When large numbers are entered into a data system there is always a chance of error

• To help to overcome this problem an additional number is often added to the end of the original number

• This number is a check digit, and is calculated from the other numbers in the original number

Page 19: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Check digits

Example:• Check digits are found on barcodes• When the barcode is scanned, the computer

automatically removes the end number and uses the rest of the numbers to calculate what the check digit should be

• If the result is the same, then the number has been entered correctly

Page 20: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Check digits

• The first number (4) is the check digit• Starting from the left, the next number (7) is

multiplied by 11, the second (8) by 10, and so on• The total is then found: 7 x 11 + 8 x 10 + 0 x 9 + 8 x 8

+ 3 x 7 + 2 x 6 + 1 x 5 + 8 x 4 + 1 x 3 + 6 x 2 + 9 x 1 = 315

Example:

Page 21: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Check digits

• 315 is then divided by 11 (there are 11 numbers) and the answer is 28 with a remainder of 7

• The remainder is then deducted from 11 and the result should equal the check digit (11 – 7 = 4)

• As the check digit is 4, the barcode has been entered correctly

Example:

Page 22: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Format checks

• A format check ensures that data conforms to the requisite combination of characters

• It achieves this by the use of a data input mask

Example:• A field in a data management system has been

allocated so that National Insurance numbers can be inputted into it

• The field has a data input mask that will only allow data that follows the correct combination of letters and numbers (e.g. YY232425A [LLNNNNNNL]) to be entered

Page 23: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Parity checks

• When data is transmitted from one computer to another it is important that does not become damaged or ‘corrupted’ during transmission

• Parity checking is a means of doing this• Parity is the sum of the bits within a piece of data• A parity error occurs when one of the bits is

changed

Page 24: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Parity checks

Example:• Data is being transmitted via a data link from one

computer to another• During the transmission of the data there is an

interruption• This may not be noticed by anyone using either

computer, but a parity check will alert them to the fact that data is incomplete or corrupted

Page 25: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Spell checks

• Most computer applications have a spell check function

• This spell check function can usually be ‘enabled’ (switched on) so that it can check the spelling of data as it is entered and automatically identify any mistakes

Page 26: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Spell checks

• The spell check function can – in some applications – be enabled to automatically correct what appear to incorrect spellings, but this option should always be used with caution as it may lead to words that are not recognised but that are spelt correctly being ‘corrected’

Example:• An spell checker set to correct spelling ‘mistakes’

automatically changed a person’s surname from ‘Connew’ to ‘Conned’ – it replaced the correct spelling with another, incorrect word

Page 27: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Grammar checks

• The grammar check function can – in word processing applications – be enabled to identify what appears to be the use of incorrect grammar, and to suggest alternatives

Page 28: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Grammar checks

Example:

Page 29: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Custom dictionaries

• If a spell check function is enabled it should automatically identify any words that it does not recognise

• Spell checkers often fail to recognise proper names (i.e. the names of people or places) or specialist words or jargon

• It is possible to avoid this by setting up customised dictionaries to which words can be added

• Once a word had been add to the customised dictionary, the spellchecker will recognised the new words as being spelt correctly

Page 30: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

Custom dictionaries

Example:• A spell check identifies the surname Bellingham as

a spelling mistake• Once that surname is added to the custom

dictionary, it is no longer identified as a spelling mistake as it is now on the list of correctly spelt words that the spell check function checks against

Page 31: AS Level ICT Data entry: Validation. Validation Validation is a check that is carried out during the process of data entry It is also the process by which

AS Level ICT

Data entry: Validation