ABSTRACT
We define the class of conjunctive queries in relational data bases, and the generalized join operator on relations. The generalized join plays an important part in answering conjunctive queries, and it can be implemented using matrix multiplication. It is shown that while answering conjunctive queries is NP complete (general queries are PSPACE complete), one can find an implementation that is within a constant of optimal. The main lemma used to show this is that each conjunctive query has a unique minimal equivalent query (much like minimal finite automata).
- 1.M. M. Aastrahan, E. B. Altman, P. L. Fehder and M. F. Senko, "Concepts of a data independent accessing model", Proc. 1972 ACM-SIGFIDET Conference, Denver (Nov. 1972). Google ScholarDigital Library
- 2.V. L. Arlazarov, E. A. Denic, M. A. Kronrad and I. A. Faradzev, "On economical construction of the transitive closure of a directed graph", Dokl. Akad. Nauk SSSR 194 (1970) 487-488. English translation in Soviet Math. Dokl. 11 , 5, 1209-1210.Google Scholar
- 3.R. F. Boyce, D. D. Chamberlin, W. F. King and M. M. Hammer, "Specifying queries as relational expressions", Proc. of ACM SIGPLAN/SIGIR Interface Meeting on Programming Languages and Information Retrieval, Gaithersburg (Nov. 73). Google ScholarDigital Library
- 4.E. F. Codd, "A relational model of data for large shared data banks", CACM 13, 6 (June 1970) 377-387. Google ScholarDigital Library
- 5.E. F. Codd, "Further normalization of the data base relational model", Courant CS Symposia, 6, Data Base Systems, Prentice-Hall (May 1971).Google Scholar
- 6.E. F. Codd, "Relational completeness of data base sublanguages", Courant CS Symposia, 6, Data Base Systems, Prentice-Hall, (May 1971).Google Scholar
- 7.E. F. Codd, "A data base sublanguage founded on the relational calculus", PROC. 1971 ACM-SIGFIDET Workshop on Data Description, Access and Control, San Diego (Nov. 1971).Google ScholarDigital Library
- 8.E. F. Codd, "Recent investigations in relational data base systems", IFIP74, North Holland, 1974, 1017-1021.Google Scholar
- 9.E. F. Codd, Ed., "Implementation of relational data base management systems", Panel Discussion, NCC (AFIPS) 75, Anaheim (May 1975).Google Scholar
- 10.D. D. Chamberlin and R. F. Boyce, "SEQUEL" "A structured English query language", IBM Technical Report RJ1394 (May 1974).Google Scholar
- 11.L. Clough, W. D. Haseman and Y. H. So, "Designing optimal data structures", AFIPS 76, 45 829-837. Google ScholarDigital Library
- 12.C. J. Date and E. F. Codd, "The relational and network approaches: comparison of the application programming interfaces", Proc. 1974 ACM-SIGFIDET Workshop on Data Description Access, and Control, Ann Arbor, (May 1974). Google ScholarDigital Library
- 13.C. Deheneffe, H. Hennebert, W. Paulus, "Relational model for a data base", IFIP 74, North Holland, 1974, 1022-1025.Google Scholar
- 14.M. J. Fischer and A. R. Meyer, "Boolean matrix multiplication and transitive closure," 12th SWAT, IEEE (1971), 129-131.Google Scholar
- 15.L. R. Gotlieb, "Computing joins of relations" Proc. ACM SIGMOD Conf. (May 75) 55-63. Google ScholarDigital Library
- 16.I. J. Heath, "Unacceptable file operations in relational data base", Proc. 1971 ACM-SIGFIDET Workshop on Data Description, Access and Control, San Diego (Nov. 1971).Google ScholarDigital Library
- 17.A. D. Held, M. R. Stonebraker and E. Wong, "INGRES - A relational data base system", AFIPS 75, 44 409-416. Google ScholarDigital Library
- 18.D. Kozen, "Complexity of finitely presented algebras", Tech. Rep. Cornell Univ., Comp. Sci., TR76-294. Google ScholarDigital Library
- 19.D. McLeod and M. Meldman, "RISS - A generalized minicomputer relational data base management system", AFIPS 1975, 44, 397-402.Google ScholarDigital Library
- 20.J. Mylopoulos, J. S. Schuster, D. Tsichritzis, "A multi-level relational system", AFIPS 1975, 44, 403-408.Google ScholarDigital Library
- 21.K. E. Niebuhr and S. E. Smith, "Initial implementation of Query by Example", IBM Technical Report (to appear).Google Scholar
- 22.J. B. Rothnie, Jr., "Evaluating inter-entry retrieval expressions in a relational data base management system", AFIPS 75, 44, 417-423. Google ScholarDigital Library
- 23.V. Strassen, "Gaussian elimination is not optimal", Numerische Mathematik 13 (1969) 354-356.Google ScholarDigital Library
- 24.J. M. Smith and P. Y. Chang, "Optimizing the performance of a relational algebra database interface", CACM 8, 10 (Oct. 1975) 568-579. Google ScholarDigital Library
- 25.S.J.P. Todd, "Implementation of the join operator in relational data bases", IBM U.K. Scientific Centre, Technical Note 15, Peterlee (1974).Google Scholar
- 26.S.J.P. Todd, "The Peterlee Relational Test Vehicle - a system overview", IBM Systems Journal 15, 4, 1976, 285-308.Google ScholarDigital Library
- 27.J. C. Thomas and J. D. Gould, "A psychological study of query by example", AFIPS 75, 44, 439-445. Google ScholarDigital Library
- 28.M. M. Zloof, "Query by Example", AFIPS 75, 44, 431-438. Google ScholarDigital Library
Index Terms
- Optimal implementation of conjunctive queries in relational data bases
Recommendations
Equivalence and minimization of conjunctive queries under combined semantics
ICDT '12: Proceedings of the 15th International Conference on Database TheoryThe problems of query containment, equivalence, and minimization are fundamental problems in the context of query processing and optimization. In their classic work [2] published in 1977, Chandra and Merlin solved the three problems for the language of ...
Combined-semantics equivalence of conjunctive queries
Query containment and equivalence are fundamental problems in the context of query processing and optimization. In this paper, we consider combined-semantics equivalence of conjunctive (CQ) queries. The combined-semantics formalism 10,11 generalizes the ...
View selection for real conjunctive queries
Given a query workload, a database and a set of constraints, the view-selection problem is to select views to materialize so that the constraints are satisfied and the views can be used to compute the queries in the workload efficiently. A typical ...
Comments