Equivalences Among Relational Expressions with the Union and Difference Operators
- 1 October 1980
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 27 (4), 633-655
- https://doi.org/10.1145/322217.322221
Abstract
Queries in relational databases can be formulated in terms of relational expressions using the relational operations select, project, join, union, and difference The equivalence problem for these queries is studied with query optimization m mind It ts shown that testmg eqmvalence of relational expressions with the operators select, project, join, and union is complete m the class FIt of the polynomial-time hierarchy A nonprocedural representation for queries formulated by these expressions is proposed This method of query representation can be viewed as a generahzatlon of tableaux or conjunctive queries (which are used to represent expressions with only select, project, and join) Furthermore, this method is extended to queries formulated by relatmnal expressions that also contain the difference operator, provided that the project operator is not applied to subexpresstons with the difference operator A procedure for testing eqmvalence of these queries is given It ts shown that testmg containment of tableaux is a necessary step in testing equivalence of queries with union and difference Three important cases m which containment of tableaux can be tested m polynomial time are described, although the containment problem is shown to be NP-complete even for tableaux that correspond to expressions with only one project and several join operatorsKeywords
This publication has 8 references indexed in Scilit:
- Efficient optimization of a class of relational expressionsACM Transactions on Database Systems, 1979
- The theory of joins in relational databasesACM Transactions on Database Systems, 1979
- Theil's estimatorInformation Processing Letters, 1977
- Decomposition—a strategy for query processingACM Transactions on Database Systems, 1976
- Computers and the Space Program: An OverviewIBM Journal of Research and Development, 1976
- Optimizing the performance of a relational algebra database interfaceCommunications of the ACM, 1975
- Reducibility among Combinatorial ProblemsPublished by Springer Nature ,1972
- A relational model of data for large shared data banksCommunications of the ACM, 1970