A Formalization of SQL with Nulls

Wilmer Ricciotti1, James Cheney1

  • 1Laboratory for Foundations of Computer Science, University of Edinburgh, 10 Crichton St, Edinburgh, EH8 9AB UK.

Journal of Automated Reasoning
|November 10, 2022
PubMed
Summary

This study mechanizes the formal semantics of SQL, including complex features like null values and nested subqueries, using the Coq proof assistant. This work validates SQL semantics for robust database implementation and query equivalence checking.

Related Concept Videos

Constraints and Statical Determinacy01:26

Constraints and Statical Determinacy

In structural engineering, the equilibrium of a system is not only determined by its equations of equilibrium but also with the help of constraints. Constraints refer to restrictions on the motion of a system. The proper combinations of constraints can minimize the total number of constraints needed to maintain a system in mechanical equilibrium. When this happens, the system is said to be statically determinate. For such systems, the unknown reaction supports can be estimated using equilibrium...
667
Null and Alternative Hypotheses01:16

Null and Alternative Hypotheses

The actual hypothesis testing begins by considering two hypotheses. They are termed  the null hypothesis and the alternative hypothesis. These hypotheses contain opposing viewpoints.
The null hypothesis, denoted by H0 is a statement of no difference between the variables—they are not related. This can often be considered the status quo. As  a result if you cannot accept the null, it requires some action.
The alternative hypothesis, denoted by H1 or Ha, is a claim about the...
8.5K
Scalar Notation01:28

Scalar Notation

Scalar notation is a useful method for simplifying calculations involving vectors. When vectors are added or subtracted, their components can be added or subtracted separately using scalar notation. For instance, force, a vector quantity, can be broken down into its x and y components, called rectangular components, and then the magnitude and direction of these components can be determined using trigonometric functions.
Consider a man pulling a rope from a hook in the northeast direction. The...
721
Schemas01:42

Schemas

A schema is a mental construct consisting of a cluster or collection of related concepts (Bartlett, 1932). There are many different types of schemata, and they all have one thing in common: schemata are a method of organizing information that allows the brain to work more efficiently. When a schema is activated, the brain makes immediate assumptions about the person or object being observed.
11.7K
Formal Charges02:42

Formal Charges

In some cases, there are seemingly more than one valid Lewis structures for molecules and polyatomic ions. The concept of formal charges can be used to help predict the most appropriate Lewis structure when more than one reasonable structure exists.
32.9K
Functional Groups02:45

Functional Groups

21.8K