|
ABSTRACT
This paper examines a number of programming primitives in query languages for relational databases. The basic framework is a language based on relational algebra, whose variables take relations as values. The primitives considered are (i) looping, (ii) counters, (iii) generic (or unranked) variables, (iv) equality, (v) bounded looping (which corresponds to counting the number of tuples in a relation), and (vi) isomorphism class (which corresponds to knowing the isomorphism class of the data base). A comparison diagram is given relating all combinations of these six primitives, and several of the resulting classes of queries are characterized by their complexity or algebraic properties. It is shown, for example, that equality cannot be simulated using all the other primitives, that generic variables (with loops) cannot be simulated with only ranked variables and all the other primitives, and that with bounded loops one can determine the isomorphism class of the database when generic variables are allowed, but not otherwise.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
{ASU} Aho, A. V., Y. Sagiv and J. D. Ullman, Equivalences among relational expressions. SIAM J. Computing (1978).
|
 |
2
|
|
| |
3
|
{B} Bancilhon, F., On the completeness of query languages for relational data bases, Proceedings 7th Symp. on Mathematical Foundations of Computer Science, Zakopane, Poland, Springer-Verlag Lecture Notes in Computer Science (Sept. 1978).
|
 |
4
|
|
| |
5
|
{C2} Codd, E. F., A data base sublanguage founded on the relational calculus, Proc. ACM SIGFIDET Workshop on Data Description, Access and Control (Codd and Dean, Eds.), ACM, San Diego (Nov. 1971) pp. 35-68.
|
| |
6
|
{C3} Codd, E. F., Relational completeness of data base sublanguages. In Data Base Systems (Rustin, Ed.), Prentice Hall (1972).
|
| |
7
|
{Ch} Chamberlin, D. D., et. al. SEQUEL 2: a unified approach to data definition, manipulation, and control. IBM J. Res. Dev., 20,6 (1976) pp. 560-575.
|
| |
8
|
{Cha} Chang, C. L., DEDUCE 2: Further investigations of deduction in relational data bases, in {GM}, pp. 201-236. See also. Chang, C. L., DEDUCE: A deductive query language for relational data bases, in Pattern Recognition and Artificial Intelligence, (C. H. Chan, Ed.), Academic Press (1976) pp. 108-134.
|
 |
9
|
|
| |
10
|
{CH2} Chandra, A. K. and D. Harel, Structure and complexity of relational queries, Proc. 21st Symp. on Foundations of Comp. Sci., Syracuse, N.Y. (Oct. 1980), pp. 333-347.
|
 |
11
|
|
| |
12
|
{F} Fagin, R., Monadic generalized spectra, Zeitschr. f. Math. Logik und Grundlagen d. Math. 21 (1975) pp.89-96.
|
| |
13
|
|
| |
14
|
{HSW} Held, G. D., M. R. Stonebraker, and E. Wong, INGRES: A relational data base system, AFIPS Conf. Proc., 44 (1975) pp. 409-416.
|
| |
15
|
{IBM} Query-by-Example, Terminal User's Guide, IBM manual SH20-2078-0 (Sep. 1978); see also Query-by-Example, Program Description/Operations Manual, IBM manual SH20-2077-0 (Sep. 1977).
|
| |
16
|
{K} Kowalski, R. A., Predicate logic as a programming language, Proc. IFIP 74, North-Holland (1974) pp. 556-574.
|
| |
17
|
{LP} Lacroix, M., A. Pirotte, ILL: An English structured query language for relational data bases, Proc. IFIP TC-2 Working Conf. on Modelling in Data Base Management Syst. (G. M. Nijssen, Ed.), Nice, North-Holland (1977) pp.
|
| |
18
|
{P} Paredaens, J., On the Expressive Power of the Relational Algebra, Information Processing Letters,7,2 (Feb. 1978).
|
| |
19
|
{Pi} Pirotte, A., High level data base query languages, in Logic and Data Bases, H. Gallaire and J. Minker (eds.), Plenum Press, NY (1978), 409-436.
|
| |
20
|
{S} Stockmeyer, L. J., The polynomial-time hierarchy. TCS, 3 (1977) pp. 1-22.
|
| |
21
|
|
| |
22
|
{V} van Emden, M. H., Computation and deductive information retrieval. In Formal Description of Programming Concepts, E. Neuhold, ed., North-Holland (1978) pp. 421-439.
|
| |
23
|
{Va} Vandijck, E., Towards a more familiar relational retrieval language, Inf. Syst., 2, 4 (1977). pp. 159-169.
|
| |
24
|
{Z1} Zloof, M. Query by Example, RC4917, IBM Research, Yorktown Heights (July 1974).
|
| |
25
|
{Z2} Zloof, M, Query-by-Example: Operations on the Transitive Closure. RC5526, IBM Research, Yorktown Heights (Oct. 1976).
|
| |
26
|
{Z3} Zloof, M., Query-by-Example: a data base language, IBM Syst. J., 4 (1977) 324-343.
|
CITED BY 38
|
|
Stavros Cosmadakis , Haim Gaifman , Paris Kanellakis , Moshe Vardi, Decidable optimization problems for database logic programs, Proceedings of the twentieth annual ACM symposium on Theory of computing, p.477-490, May 02-04, 1988, Chicago, Illinois, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Jan Van den Bussche , Dirk Van Gucht , Gottfried Vossen, Reflective programming in the relational algebra, Proceedings of the twelfth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.17-25, May 25-28, 1993, Washington, D.C., United States
|
|
|
|
|
|
|
|
|
Marc Andries , Luca Cabibbo , Jan Paredaens , Jan Van den Bussche, Applying an update method to a set of receivers (extended abstract), Proceedings of the fourteenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.208-218, May 22-25, 1995, San Jose, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Serge Abiteboul , Eric Simon , Victor Vianu, Non-deterministic languages to express deterministic transformations, Proceedings of the ninth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.218-229, April 02-04, 1990, Nashville, Tennessee, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Neil Immerman , Sushant Patnaik , David Stemple, The expressiveness of a family of finite set languages, Proceedings of the tenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.37-52, May 29-31, 1991, Denver, Colorado, United States
|
|
|
|
|
|
|
|
|
Catriel Beeri , Tova Milo , Paula Ta-Shma, On genericity and parametricity (extended abstract), Proceedings of the fifteenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.104-116, June 04-06, 1996, Montreal, Quebec, Canada
|
|
|
|
|
|
Latha S. Colby , Edward L. Robertson , Lawrence V. Saxton , Dirk Van Gucht, A query language for list-based complex objects, Proceedings of the thirteenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.179-189, May 24-27, 1994, Minneapolis, Minnesota, United States
|
|
|
|
|
|
|
|
|
Serge Abiteboul , Kevin Compton , Victor Vianu, Queries are easier than you thought (probably), Proceedings of the eleventh ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.23-32, June 02-05, 1992, San Diego, California, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|