SQL queries with CASE expressions

  • Authors:
  • Jarek Gryz;Qiong Wang;Xiaoyan Qian;Calisto Zuzarte

  • Affiliations:
  • Department of Computer Science and Engineering, York University, Toronto, Canada;IBM Laboratory, Toronto, Canada;IBM Laboratory, Toronto, Canada;IBM Laboratory, Toronto, Canada

  • Venue:
  • ISMIS'08 Proceedings of the 17th international conference on Foundations of intelligent systems
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

In recent years more and more queries are generated automatically by query managers/builders with end-users providing only specific parameters through GUIs.Queries generated automatically can be quite different fromqueries written by humans. In particular, they contain non-declarative features, most notorious of which is the CASE expression. Current query optimizers are often ill-prepared for the new types of queries as they do not deal well with procedural 'insertions'. In this paper, we discuss the inefficiencies of CASE expressions and present several new optimization techniques to address them. We also describe experimental evaluation of the prototype implemented in DB2 UDB V8.2.