JOURNAL ARTICLE

Optimization of nested SQL queries revisited

Richard A. GanskiHarry K. T. Wong

Year: 1987 Journal:   ACM SIGMOD Record Vol: 16 (3)Pages: 23-33   Publisher: Association for Computing Machinery

Abstract

Current methods of evaluating nested queries in the SQL language can be inefficient in a variety of query and data base contexts. Previous research in the area of nested query optimization which sought methods of reducing evaluation costs is summarized, including a classification scheme for nested queries, algorithms designed to transform each type of query to a logically equivalent form which may then be evaluated more efficiently, and a description of a major bug in one of these algorithms. Further examination reveals another bug in the same algorithm. Solutions to these bugs are proposed and incorporated into a new transformation algorithm, and extensions are proposed which will allow the transformation algorithms to handle a larger class of predicates. A recursive algorithm for processing a general nested query is presented and the action of this algorithm is demonstrated. This algorithm can be used to transform any nested query.

Keywords:
Computer science Nested loop join Query optimization Query by Example SQL Query language Sargable Transformation (genetics) Class (philosophy) Nested set model Spatial query Theoretical computer science Algorithm Programming language Database Information retrieval Web search query Artificial intelligence Search engine

Metrics

33
Cited By
1.14
FWCI (Field Weighted Citation Impact)
6
Refs
0.81
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications
Data Management and Algorithms
Physical Sciences →  Computer Science →  Signal Processing
Semantic Web and Ontologies
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

BOOK-CHAPTER

Optimization of queries using nested indices

Elisa Bertino

Lecture notes in computer science Year: 2005 Pages: 44-59
BOOK-CHAPTER

Nested Queries

Apress eBooks Year: 2008 Pages: 61-75
© 2026 ScienceGate Book Chapters — All rights reserved.