JOURNAL ARTICLE

Optimization of nested SQL queries revisited

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 SQL Database Query by Example Nested set model Programming language Information retrieval Search engine Web search query

Metrics

177
Cited By
5.68
FWCI (Field Weighted Citation Impact)
7
Refs
0.95
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

JOURNAL ARTICLE

Optimization of nested SQL queries revisited

Richard A. GanskiHarry K. T. Wong

Journal:   ACM SIGMOD Record Year: 1987 Vol: 16 (3)Pages: 23-33
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.