On optimizing an SQL-like nested query

Won Bae Kim

ACM Transactions on Database Systems · 1982 · 393 citations · 16 references

DOIFull text

Open access

Concepts

TL;DR

SQL, a widely recognized high‑level nonprocedural language, features arbitrarily nested query blocks, yet four nesting types remain poorly understood and need efficiency improvements. The study develops algorithms that transform queries with these nesting types into semantically equivalent forms suitable for efficient processing by existing query‑processing subsystems. The algorithms are integrated into a coherent strategy that processes general nested queries of arbitrary complexity. The analysis shows that an arbitrarily nested SQL‑like query comprises five basic types of nesting.

Abstract

SQL is a high-level nonprocedural data language which has received wide recognition in relational databases. One of the most interesting features of SQL is the nesting of query blocks to an arbitrary depth. An SQL-like query nested to an arbitrary depth is shown to be composed of five basic types of nesting. Four of them have not been well understood and more work needs to be done to improve their execution efficiency. Algorithms are developed that transform queries involving these basic types of nesting into semantically equivalent queries that are amenable to efficient processing by existing query-processing subsystems. These algorithms are then combined into a coherent strategy for processing a general nested query of arbitrary complexity.

References

16