skip to main content
10.1145/1516360.1516459acmotherconferencesArticle/Chapter ViewAbstractPublication PagesedbtConference Proceedingsconference-collections
research-article
Free Access

Interactive query refinement

Published:24 March 2009Publication History

ABSTRACT

We investigate the problem of refining SQL queries to satisfy cardinality constraints on the query result. This has applications to the many/few answers problems often faced by database users. We formalize the problem of query refinement and propose a framework to support it in a database system. We introduce an interactive model of refinement that incorporates user feedback to best capture user preferences. Our techniques are designed to handle queries having range and equality predicates on numerical and categorical attributes. We present an experimental evaluation of our framework implemented in an open source data manager and demonstrate the feasibility and practical utility of our approach.

References

  1. S. Agrawal, S. Chaudhuri, G. Das, and A. Gionis. Automated ranking of database query results. CIDR, 2003.Google ScholarGoogle Scholar
  2. S. Börzsönyi, D. Kossmann, and K. Stocker. The skyline operator. ICDE, 2001.Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. N. Bruno, S. Chaudhuri, and D. Thomas. Generating queries with cardinality constraints for dbms testing. IEEE TKDE, 18(12):1721--1725, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. M. J. Carey and D. Kossmann. On saying "enough already!" in sql. SIGMOD, pages 219--230, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. S. Chaudhuri. Generalization and a framework for query modification. ICDE, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. S. Chaudhuri, N. N. Dalvi, and R. Kaushik. Robust cardinality and cost estimation for skyline operator. ICDE, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. S. Chaudhuri, G. Das, V. Hristidis, and G. Weikum. Probabilistic ranking of database query results. VLDB, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. S. Chaudhuri, R. Motwani, and V. Narasayya. On Random Sampling Over Joins. SIGMOD, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. S. Chaudhuri and V. Narasayya. Program for TPC-D Data generation with skew. ftp://ftp.research.microsoft.com/users/viveknar/tpcdskew.Google ScholarGoogle Scholar
  10. W. W. Chu and Q. Chen. A structured approach for cooperative query answering. TKDE, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. R. Fagin, A. Lotem, and M. Naor. Optimal aggregation algorithms for middleware. JCSS, 66(4):614--656, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. M. Fontoura, V. Josifovski, R. Kumar, C. Olston, A. Tomkins, and S. Vassilvitskii. Relaxation in text search using taxonomies. VLDB, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. P. Godfrey. Skyline cardinality for relational processing. FoIKS, 2004.Google ScholarGoogle ScholarCross RefCross Ref
  14. P. Haas, J. Naughton, S. Seshadri, and A. Swami. Fixed Precision Estimation Of Join Selectivity. PODS, June 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. V. Harinarayan, A. Rajaraman, and J. D. Ullman. Implementing data cubes efficiently. SIGMOD, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. D. Haussler and E. Welzl. Epsilon-nets and simplex range queries. SoCG, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. J. Hershberger, N. Shrivastava, S. Suri, and C. D. Tóth. Adaptive spatial partitioning for multidimensional data streams. Algorithmica, 46(1), 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. O. H. Ibarra and C. E. Kim. Fast approximation algorithms for the knapsack and sum of subset problems. J. ACM, 22(4):463--468, 1975. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. I. F. Ilyas, W. G. Aref, and A. K. Elmagarmid. Supporting top-k join queries in relational databases. VLDB, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. Y. Ioannidis and S. Christodoulakis. Optimal Histograms for Limiting Worst-Case Error Propagation in the Size of Join Results. ACM Transactions on Database Systems, Vol. 18, No. 4, pages 709--748, Dec. 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. A. Kadlag, A. V. Wanjari, J. Freire, and J. R. Haritsa. Supporting exploratory queries in databases. DASFAA, 2004.Google ScholarGoogle ScholarCross RefCross Ref
  22. N. Koudas, C. Li, A. K. H. Tung, and R. Vernica. Relaxing join and selection queries. VLDB, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. G. Luo. Efficient detection of empty-result queries. VLDB, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. V. Markl, V. Raman, D. Simmen, G. Lohman, H. Pirahesh, and M. Cilimdzic. Robust Query Processing Through Progressive Optimization. SIGMOD, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. S. Martello and P. Toth. Worst-case analysis of greedy algorithms for the subset-sum problem. Math. Programming, 28(2), 1984.Google ScholarGoogle Scholar
  26. C. Mishra, N. Koudas, and C. Zuzarte. Generating targeted queries for database testing. SIGMOD, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. V. N. Vapnik and A. Chervonenkis. On the uniform convergence of relative frequencies of events to their probabilities. Theory of Probability and its Applications, 16(2):264--280, 1971.Google ScholarGoogle ScholarCross RefCross Ref
  1. Interactive query refinement

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Other conferences
        EDBT '09: Proceedings of the 12th International Conference on Extending Database Technology: Advances in Database Technology
        March 2009
        1180 pages
        ISBN:9781605584225
        DOI:10.1145/1516360

        Copyright © 2009 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 24 March 2009

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate7of10submissions,70%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader