• DocumentCode
    1719882
  • Title

    Exploiting uniqueness in query optimization

  • Author

    Paulley, G.N. ; Larson, Per-Åke

  • Author_Institution
    Dept. of Comput. Sci., Waterloo Univ., Ont., Canada
  • fYear
    1994
  • Firstpage
    68
  • Lastpage
    79
  • Abstract
    Consider an SQL query that specifies duplicate elimination via a DISTINCT clause. Because duplicate elimination often requires an expensive sort of the query result, it is often worthwhile to identify unnecessary DISTINCT clauses and avoid the sort altogether. We prove a necessary and sufficient condition for deciding if a query requires duplicate elimination. The condition exploits knowledge about keys, table constraints, and query predicates. Because the condition cannot always be tested efficiently, we offer a practical algorithm that tests a simpler, sufficient condition. We consider applications of this condition for various types of queries, and show that we can exploit this condition in both relational and nonregulation database systems
  • Keywords
    SQL; query processing; relational databases; SQL query; necessary and sufficient condition; nonregulation database; query optimization; query predicates; relational database; sort; table constraints; uniqueness; Algebra; Computer science; Information analysis; Query processing; Relational databases; Sufficient conditions; Testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Data Engineering, 1994. Proceedings.10th International Conference
  • Conference_Location
    Houston, TX
  • Print_ISBN
    0-8186-5402-3
  • Type

    conf

  • DOI
    10.1109/ICDE.1994.283003
  • Filename
    283003