data validation and verification n.
Skip this Video
Loading SlideShow in 5 Seconds..
Download Presentation


1366 Vues Download Presentation
Télécharger la présentation


- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript


  2. Data Validation • In computing, data validation is the process of ensuring that a program operates on clean, correct and useful data.

  3. Data Validation • It uses routines, often called "validation rules" or "check routines", that check for correctness, meaningfulness, and security of data that are input to the system.

  4. Data Validation • Data validation checks that the data is sensible before it is processed.

  5. Methods of data validation

  6. DatatypeCheck • Checks the data type of the input and give an error message if the input data does not match with the chosen data type

  7. Data Type Check Example • In an input box accepting numeric data, if the letter 'O' was typed instead of the number zero, an error message would appear.

  8. Consistency Checks • Checks fields to ensure data in these fields corresponds. If Title = "Mr.", then Gender = "M".

  9. Range Check • This checks that the data lies within a specified range of values. Egthe month of a person's DOB should lie between 1 and 12

  10. Presence Check • This checks that important data is actually there and has not been missed out. Eg.Customers may be required to have their telephone numbers.

  11. Type Check • A check that data is of the right type. Eg. number, text etc

  12. Length Check • Checks that fields have the correct number of characters. Eg. A bank account number may always be 10 digits long.

  13. Check Digits • Used for numerical data. An extra digit is added to a number which is calculated from the other digits. The computer checks this calculation when data is entered. EgThe ISBN number on a book. The last digit is a check digit.

  14. Batch Totals • This checks for missing records. Numerical fields may be added together for all records in a batch. The batch total is entered and the computer checks that the total is correct. Eg. Add the 'Total Cost' field of a number of transactions together.


  16. Data Verification Verification is used to prevent errors occurring when data is copied from one medium to another. Eg. paper to disk, disk to disk, memory to disk

  17. Double keying • Used to check for transcription errors. The data is entered twice (by two different people). The computer will only accept the data for processing if the two versions are identical.

  18. Visual check • Checking for errors by looking through the data. Eg. Proof-reading a typed document.

  19. Parity • Used to check for transmission errors over networks or between memory and disk. An extra bit is added to each binary number before it is transmitted. Even parity systems make sure that each number has an even number of '1' bits. After transmission, each binary number is checked to see if it still has an even number of '1' bits.

  20. Parity Example • (Even parity) If 11010111 is transmitted ...(6 '1' bits)and 11010011 is received ... (5 '1' bits)then the computer knows a corruption of the data has occurred.

  21. Proof Reading • A visual check by eye that no errors have been made. This is sometimes done by printing out data that has been input, and sending it back to the source of the data to check. For example, printed proofs of the pages of a book may be sent back to the author for checking.

  22. The End

  23. Question Time