Data Analyst - Data Validation

The first five are validation types associated with the data (type, range, constraint, consistency, and structure) and the sixth type focuses on the validation of application code used to accept data from user input. 

Data validation helps to ensure the integrity of data. It also gives you confidence that the data you are using is clean.

Data Type

  • Purpose: Check that the data matches the data type defined for a field.

  • Example: Data values for school grades 1-12 must be a numeric data type.

  • Limitations: The data value 13 would pass the data type validation but would be an unacceptable value. For this case, data range validation is also needed.

Data Range

  • Purpose: Check that the data falls within an acceptable range of values defined for the field.

  • Example: Data values for school grades should be values between 1 and 12.

  • Limitations: The data value 11.5 would be in the data range and would also pass as a numeric data type. But, it would be unacceptable because there aren't half grades. For this case, data constraint validation is also needed.

Data Constraints

  • Purpose: Check that the data meets certain conditions or criteria for a field. This includes the type of data entered as well as other attributes of the field, such as number of characters.

  • Example: Content constraint: Data values for school grades 1-12 must be whole numbers.

  • Limitations: The data value 13 is a whole number and would pass the content constraint validation. But, it would be unacceptable since 13 isn’t a recognized school grade. For this case, data range validation is also needed.

Data Consistency

  • Purpose: Check that the data makes sense in the context of other related data.

  • Example: Data values for product shipping dates can’t be earlier than product production dates.

  • Limitations: Data might be consistent but still incorrect or inaccurate. A shipping date could be later than a production date and still be wrong.

Data Structure

  • Purpose: Check that the data follows or conforms to a set structure.

  • Example: Web pages must follow a prescribed structure to be displayed properly.

  • Limitations: A data structure might be correct with the data still incorrect or inaccurate. Content on a web page could be displayed properly and still contain the wrong information.

Word Code Validation

  • Purpose: Check that the application code systematically performs any of the previously mentioned validations during user data input.

  • Example: Common problems discovered during code validation include: more than one data type allowed, data range checking not done, or ending of text strings not well defined.

  • Limitations: Code validation might not validate all possible variations with data input.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值