arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.10898cs.DBcs.AIcs.LO
收藏

具有SQL值的关系代数和微积分

Relational Algebra and Calculus with SQL Null Values

Free University of Bozen-Bolzano(博尔扎诺自由大学)

Enrico Franconi, Sergio Tessaris

摘要:

自从Codd的关系模型(SQL标准的基础)中引入空值以来,数据库中的空值逻辑一直是研究的主题。我们显示了一个逻辑特性的一阶片段的SQL与空值,首先集中在一个简单的扩展与空值的标准关系代数,它捕捉的SQL片段,然后提出两个不同的域关系演算,其中的空值是一个术语的语言,但它不出现作为一个元素的语义解释域的逻辑。在一个演算中,关系可以被看作是部分元组的集合,而在另一个(等价的)演算中,关系被水平分解为一组关系,每个关系都持有正则的全元组。我们扩展Codd的定理证明的关系代数与域关系演算在SQL空值的存在下的等价性。

英文摘要:

The logic of nulls in databases has been subject of investigation since their introduction in Codd's Relational Model, which is the foundation of the SQL standard. We show a logical characterisation of a first-order fragment of SQL with null values, by first focussing on a simple extension with null values of standard relational algebra, which captures exactly the SQL fragment, and then proposing two different domain relational calculi, in which the null value is a term of the language but it does not appear as an element of the semantic interpretation domain of the logics. In one calculus, a relation can be seen as a set of partial tuples, while in the other (equivalent) calculus, a relation is horizontally decomposed as a set of relations each one holding regular total tuples. We extend Codd's theorem by proving the equivalence of the relational algebra with both domain relational calculi in presence of SQL null values.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑