Equivalence and Normal Forms for the Restricted and Bounded Fixpoint in the Nested Algebra

The nested model is an extension of the traditional, “flat” relational model in which relations can also have relation-valued entries. Its “default” query language, the nested algebra, is rather weak, unfortunately, since it is only a conservative extension of the traditional, flat relational algebra, and thus can express only a small fraction of the polynomial-time queries. Therefore, it was proposed to extend the nested algebra with a fixpoint construct, but the resulting language turned out to be too powerful: many inherently exponential queries could also be expressed. Two polynomial-time restrictions of the fixpoint closure of the nested algebra were proposed: the restricted fixpoint closure (by Gyssens and Van Gucht) and the bounded fixpoint closure (by Suciu). Here, we prove two results. First we show that both restrictions are equivalent in expressive power. The proof technique relies on known encodings of nested relations into flat ones, and on a novel technique, called type substitution, by which we reduce the equivalence of the two restrictions to its obvious counterpart in the flat relational model. Second we prove that both the bounded fixpoint queries and the restricted fixpoint queries admit normal forms, in which the fixpoint occurs exactly once. The proof technique relies on a novel encoding method of nested relations into flat ones.

[1]  Limsoon Wong,et al.  Naturally Embedded Query Languages , 1992, ICDT.

[2]  Dan Suciu,et al.  Bounded Fixpoints for Complex Objects , 1993, Theor. Comput. Sci..

[3]  Serge Abiteboul,et al.  Datalog Extensions for Database Queries and Updates , 1991, J. Comput. Syst. Sci..

[4]  E. F. CODD,et al.  A relational model of data for large shared data banks , 1970, CACM.

[5]  Catriel Beeri,et al.  An Introduction to the Completeness of Languages for Complex Objects and Nested Relations , 1987, NF².

[6]  Franco P. Preparata The theory of databases , 1986 .

[7]  Marc Gyssens,et al.  A uniform approach toward handling atomic and structured information in the nested relational database model , 1989, JACM.

[8]  Marc Gyssens,et al.  The Powerset Algebra as a Natural Tool to Handle Nested Database Relations , 1992, J. Comput. Syst. Sci..

[9]  Hans-Jörg Schek,et al.  Remarks on the algebra of non first normal form relations , 1982, PODS.

[10]  Marc Gyssens,et al.  A Comparison between Algebraic Query Languages for Flat and Nested Databases , 1991, Theor. Comput. Sci..

[11]  Hans-Jörg Schek,et al.  The relational model with relation-valued attributes , 1986, Inf. Syst..

[12]  Dan Suciu,et al.  The Restricted and Bounded Fixpoint Closures of the Nested Relational Algebra are Equivalent , 1995, DBPL.

[13]  E. F. Codd,et al.  A relational model of data for large shared data banks , 1970, CACM.

[14]  Joachim Biskup,et al.  Proceedings of the 4th International Conference on Database Theory , 1992, ICDT 1992.

[15]  Patrick C. Fischer,et al.  Nested Relational Structures , 1986, Adv. Comput. Res..

[16]  Neil Immerman,et al.  Relational Queries Computable in Polynomial Time , 1986, Inf. Control..

[17]  Serge Abiteboul,et al.  Generic Computation and its complexity , 1991, STOC '91.

[18]  Latha S. Colby A recursive algebra for nested relations , 1990, Inf. Syst..

[19]  Catriel Beeri,et al.  On the power of languages for manipulation of complex objects , 1987, VLDB 1987.

[20]  Saharon Shelah,et al.  Fixed-point extensions of first-order logic , 1985, 26th Annual Symposium on Foundations of Computer Science (sfcs 1985).

[21]  Dirk Van Gucht,et al.  Converting nested algebra expressions into flat algebra expressions , 1992, TODS.

[22]  F. E. A Relational Model of Data Large Shared Data Banks , 2000 .

[23]  GyssensMarc,et al.  A uniform approach toward handling atomic and structured information in the nested relational database model , 1989 .