【24h】

Completeness of Queries over SQL Databases

机译:SQL数据库查询的完整性

获取原文

摘要

Data completeness is an important aspect of data quality. We consider a setting, where databases can be incomplete in two ways: records may be missing and records may contain null values. We (ⅰ) formalize when the answer set of a query is complete in spite of such incompleteness, and (ⅱ) we introduce table completeness statements, by which one can express that certain parts of a database are complete. We then study how to deduce from a set of table-completeness statements that a query can be answered completely. Null values as used in SQL are ambiguous. They can indicate either that no attribute value exists or that a value exists, but is unknown. We study completeness reasoning for the different interpretations. We show that in the combined case it is necessary to syntactically distinguish between different kinds of null values and present an encoding for doing that in standard SQL databases. With this technique, any SQL DBMS evaluates complete queries correctly with respect to the different meanings that nulls can carry. We study the complexity of completeness reasoning and provide algorithms that in most cases agree with the worst-case lower bounds.
机译:数据完整性是数据质量的重要方面。我们考虑一种设置,其中数据库可能以两种方式不完整:记录可能丢失,并且记录可能包含空值。尽管存在这样的不完整性,我们(ⅰ)在查询的答案集完整时将其形式化,并且(ⅱ)我们引入表完整性声明,据此可以表示数据库的某些部分是完整的。然后,我们研究如何从一组表完整性语句中推断出可以完全回答查询的问题。 SQL中使用的空值是不明确的。它们可以指示不存在属性值或存在值,但是未知。我们针对不同的解释研究完整性推理。我们显示,在组合的情况下,有必要在语法上区分不同类型的空值,并提供一种在标准SQL数据库中执行此操作的编码。使用这种技术,任何SQL DBMS都会针对null可能具有的不同含义正确评估完整的查询。我们研究了完整性推理的复杂性,并提供了在大多数情况下与最坏情况下限一致的算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号