Data validation: Difference between revisions

Content deleted Content added
IamSandyy (talk | contribs)
m Added internal link to "Database"
 
(5 intermediate revisions by 3 users not shown)
Line 1:
{{Short description|The processProcess of ensuring computer data is both correct and useful}}
{{redirect|Input validation||Improper input validation}}
{{more citations needed|date=November 2016}}
Line 7:
 
==Overview ==
Data validation is intended to provide certain well-defined guarantees for fitness and [[data consistency|consistency of data]] in an application or automated system. Data validation rules can be defined and designed using various methodologies, and be deployed in various contexts.<ref>[https://ec.europa.eu/eurostat/cros/system/files/methodology_for_data_validation_v1.0_rev-2016-06_final.pdf Methodology for data validation 1.0]</ref> Their implementation can use [[declarative programming|declarative]] [[data integrity]] rules, or [[imperative programming|procedure-based]] [[business rules]].<ref>[http://msdn.microsoft.com/en-us/library/aa291820(VS.71).aspx Data Validation, Data Integrity, Designing Distributed Applications with Visual Studio .NET]</ref>
 
The guarantees of data validation do not necessarily include accuracy, and it is possible for [[data entry]] errors such as misspellings to be accepted as valid. Other clerical and/or computer controls may be applied to reduce inaccuracy within a system.
 
==Different kinds==
Line 18:
* Range and constraint validation;
* Code and cross-reference validation;
* [[Structure validation|Structured validation]]; and
* Consistency validation
 
Line 24:
Data type validation is customarily carried out on one or more simple data fields.
 
The simplest kind of data type validation verifies that the individual characters provided through user input are consistent with the expected characters of one or more known [[Primitive data type|primitive data types]] as defined in a programming language or data storage and retrieval mechanism.
 
For example, an integer field may require input to use only characters 0 through 9.
Line 84:
 
;Referential integrity
:Values in two relational [[database]] tables can be linked through foreign key and primary key. If values in the foreign key field are not constrained by internal mechanisms, then they should be validated to ensure that the referencing table always refers to a row in the referenced table.
 
;Spelling and grammar check
Line 116:
* [[Data processing]]
* [[Data verification]]
* [[Triangulation (social sciencesscience)]]
* [[Verification and validation]]
 
Line 129:
 
{{DEFAULTSORT:Data Validation}}
 
[[Category:Data processing]]
[[Category:Data security]]