Adding subqueries to MySQL, what does it take to have a decision-support engine?

  • Authors:
  • Antonio Badia;Matt Chanda;Bin Cao

  • Affiliations:
  • University of Louisville, Louisville, KY;University of Louisville, Louisville, KY;University of Louisville, Louisville, KY

  • Venue:
  • Proceedings of the 5th ACM international workshop on Data Warehousing and OLAP
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

MySQL is an OLTP system without the ability to handle SQL subqueries. As part of our project in query optimization, we add subquery processing to MySQL through rewriting. First, we incorporate the ability to handle subqueries in the FROM clause; then rewrite queries with subqueries in the WHERE clause by moving the subquery to the FROM clause and introducing suitable conditions to link the subquery and the main query tables. The result is a complete and correct unnesting procedure for SQL queries. The idiosyncrasies of SQL semantics make some rewritings tricky. While optimization issues are not directly addressed, the rewriting opens up the possibility of more efficient query processing in several cases.