7.5 Validation & Verification
7.5 Validation & Verification
• range checks
• length checks
• type checks
• presence checks
• format checks
• check digits
Computer Science 2210
Compiled By: Bilal Khan
Range check:
Checks that a value falls within the specified
range
OR
Value of a number is between an upper value
and a lower value.
Examples :
Value1 MOD(10,3) returns the remainder of 10 divided by 3
Value2 DIV(10,3) returns the quotient of 10 divided by 3
Value3 ROUND(6.97354, 2) returns the value rounded to 2 decimal places
Value4 RANDOM() returns a random number between 0 and 1 inclusive
Computer Science 2210
Compiled By: Bilal Khan
Format check:
A format check checks that the characters entered
conform to a pre-defined pattern,
OR
Checks the data is in the right format.