Deciding Containment for Queries with Complex Objects and Aggregations (1997)
| Citations: | 40 - 5 self |
BibTeX
@MISC{Levy97decidingcontainment,
author = {Alon Levy and Dan Suciu},
title = {Deciding Containment for Queries with Complex Objects and Aggregations},
year = {1997}
}
Years of Citing Articles
OpenURL
Abstract
We address the problem of query containment and query equivalence for complex objects. We show that for a certain conjunctive query language for complex objects, query containment and weak query equivalence are decidable. Our results have two consequences. First, when the answers of the two queries are guaranteed not to contain empty sets, then weak equivalence coincides with equivalence, and our result answers partially an open problem about the equivalence of nest; unnest queries for complex objects [GPG90]. Second, we derive an NP-complete algorithm for checking the equivalence of certain conjunctive queries with grouping and aggregates. Our results rely on a translation of the containment and equivalence conditions for complex objects into novel conditions on conjunctive queries, which we call simulation and strong simulation. These conditions are more complex than containment of conjunctive queries, because they involve arbitrary numbers of quantifier alternations. We prove that c...







