Explaining Wrong Queries Using Small Examples

Zhengjie Miao1, Sudeepa Roy1, Jun Yang1

  • 1Duke University.

Proceedings. ACM-SIGMOD International Conference on Management of Data
|August 24, 2019
PubMed
Summary

This study introduces algorithms to find the smallest database counterexamples, explaining why SQL queries differ. This helps identify errors in query equivalence, crucial for database education and performance tuning.

Related Concept Videos

Newton's Third Law: Examples01:08

Newton's Third Law: Examples

Newton's third law states that every action has an equal and opposite reaction. Consider a swimmer pushing off the side of a pool. They push against the wall of the pool with their feet and accelerate in the direction opposite to that of their push. This occurs because the wall exerts an equal and opposite force on the swimmer. Here, the forces do not cancel out each other as they are acting on different systems. In this case, there are two systems: the swimmer and the wall. If we select...
26.8K
Free Body Diagrams: Examples01:07

Free Body Diagrams: Examples

Solving problems that involve forces is easy using free-body diagrams. A free-body diagram is a sketch showing all the external forces that are acting on an object or system. The object or system is represented by a single isolated point (or free body). Only those forces acting on it that originate outside of the object or system—the external forces—are shown. The forces are represented by vectors extending outward from the free body. Imagine a person sitting on a chair. Here, the...
14.5K
Kinetic Molecular Theory and Gas Laws Explain Properties of Gas Molecules02:34

Kinetic Molecular Theory and Gas Laws Explain Properties of Gas Molecules

The test of the kinetic molecular theory (KMT) and its postulates is its ability to explain and describe the behavior of a gas. The various gas laws (Boyle’s, Charles’s, Gay-Lussac’s, Avogadro’s, and Dalton’s laws) can be derived from the assumptions of the KMT, which have led chemists to believe that the assumptions of the theory accurately represent the properties of gas molecules.
37.2K
Scientific Laws and Theories02:31

Scientific Laws and Theories

Scientific Laws
87.2K
The Nitrogen Cycle01:49

The Nitrogen Cycle

Nitrogen atoms, present in all proteins and DNA, are recycled between abiotic and biotic components of the ecosystem. However, the primary form of nitrogen on Earth is nitrogen gas, which cannot be used by most animals and plants. Thus, nitrogen gas must first be converted into a usable form by nitrogen-fixing bacteria before it can be cycled through other living organisms. The use of nitrogen-containing fertilizers and animal waste products in human agriculture has greatly influenced the...
59.6K
Proteins: From Genes to Degradation02:11

Proteins: From Genes to Degradation

Within a biological system, the DNA encodes the RNA, and the nucleotide sequence in the RNA further defines the amino acid sequence in the protein. This is referred to as “The Central Dogma of Molecular Biology” - a term coined by Francis Crick.  Central dogma is a firm principle in biology that defines the flow of genetic information within any life form. The two fundamental steps in central dogma are - transcription and translation.
Transcription is the synthesis of RNA...
14.2K