Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Answering queries on embedded-complete database schemes

Published: 01 April 1987 Publication History

Abstract

It has been observed that, for some database schemes, users may have difficulties retrieving correct information, even for simple queries. The problem occurs when some implicit “piece” of information, defined on some subset of a relation scheme, is not explicitly represented in the database state. In this situation, users may be required to know how the state and the constraints interact before they can retrieve the information correctly.
In this paper, the formal notion of embedded-completeness is proposed, and it is shown that schemes with this property avoid the problem described above. A polynomial-time algorithm is given to test whether a database scheme is independent and embedded-complete. Under the assumption of independence, it is shown that embedded-complete schemes allow efficient computation of optimal relational algebra expressions equivalent to the X-total projection, for any set of attributes X.

References

[1]
AHO, A. V., SAGIV, Y., AND ULLMAN, J. D. Equivalence of relational expressions. SlAM J. Comput. 8, 2 (1979), 218-246.
[2]
ARMSTRONG, W.W. Dependency structures of data base relationships. In Proceedings oflFIP 1974. North-Holland, Amsterdam, 1974, pp. 580-583.
[3]
ATZENI, P., AND CHAN, E. P.F. Efficient query answering in the representative instance approach. In Proceedings of the 4th ACM SIGACT-SIGMOD Sympos;um on Principles of Database Systems (Portland, Oreg., Mar. 25-27). ACM, New York, 1985, pp. 181-188.
[4]
BEEm, C., AND VARDI, M. Formal systems for tuple and equality generating dependencies. SIAM J. Comput. 13, 1 (1984), 76-98.
[5]
BEERI, C., FAGIN, R., MAIER, D., AND YANNAKAKIS, M. On the desirability of acyclic database schemes. J. ACM 30, 3 (July 1983), 479-513.
[6]
BEERI, C., MENDELZON, A. O., SAGIV, Y., AND ULLMAN, J.D. Equivalence of relational database schemes. SIAM J. Comput. I0, 2 (1981), 352-370.
[7]
BERNSTEIN, P. A., AND GOODMAN, N. The power of natural semijoins. SIAM J. Comput. i0, 4 (I 98 I), 751-77 I.
[8]
CARLSON, C. R., AND KAPLAN, R.S. A generaliz(~l access path model and its application to a relational data base system. In Proceedings of the SIGMOD International Conference on Management of Data (Washington, D.C., June 2-4). ACM, New York, 1976, pp. 143-154.
[9]
CHAN, E. P.F. Query answering and schema analysis under the weak instance model, CSRI TR- 164. Toronto, Ont., Canada, 1985.
[10]
CHAN, E. P. F., AND ATXEm, P. On the properties and characterization of connection-trap-free schemes. In Proceedings of the 5th ACM SIGACT-SIGMOD Symposium on Principles of Database Systems (Cambridge, Mass., Mar. 24-26). ACM, New York, 1986, pp. 140-147.
[11]
CHAN, E. P. F., AND MENDELZON, A.O. Independent and separable database schemes. SlAM J. Comput., to appear.
[12]
CODD, E.F. A relational model for large shared data banks. Comun. ACM 13, 6 (June 1970), 377-387.
[13]
FAG1N, R. Horn clauses and database dependencies. J. ACM 29, 4 (Oct. 1982), 952-985.
[14]
FAGIN, R., MENDELZON, A. O., AND ULLMAN, J.D. A simplified universal relation assumption and its properties. ACM Trans. Database Syst. 7, 3 (Sept. 1982), 343-360.
[15]
GRAHAM, M. H., AND MENDELZON, A. O. Strong equivalence of relational expressions under dependencies. Inf. Process. Lett. 14, 2 (1982), 57-62.
[16]
GRAHAM, M. H., MENDELZON, A. O., AND VARDI, M. Notions of dependency satisfaction. J. ACM 33, I (Jan. 1986), 105-129.
[17]
GRAHAM, M. H., AND YANNAKAKIS, M. Independent database schemas. J. Comput. Syst. Sci. 28, I (1984), 121-141.
[18]
HONEYMAN, P. Extension joins. In Proceedings of the 6th International Conference on Very Large Data Bases (Montreal, Canada, Oct. 1-3). ACM, New York, 1980, pp. 239-244.
[19]
HONEYMAN, P. Testing satisfaction of functional dependencies. J. ACM 29, 3 (July 1982), 668-677.
[20]
ITO, M., IWASAKI, M., AND KASAMI, T. Some results on the representative instance in relational databases. SIAM J. Comput. 14, 2 (1985), 334-354.
[21]
KORTH, H. F., KUPER, G. M., FEIGENBAUM, J., VAN GELDER, A., AND ULLMAN, J.D. System U: A database system based on the universal relation assumption. ACM Tram. Database Syst. 9, 3 (Sept. 1984), 331-34~/.
[22]
MAIER, D., MENDELZON, A. O., AND SAGIV, Y. Testing implications of data dependencies. ACM Trans. Database Syst. 4, 4 (Dec. 1979), 455-469.
[23]
MAmR, D., ROZENSHTEIN, D., AND WARREN, D.S. Window functions. In Advances in Computing Research, vol. 3. JAI Press, Greenwich, Conn., 1986, pp. 213-246.
[24]
MAIER, n., ULLMAN, J. D., AND VARDI, i. Y. On the foundations of the universal relation model. ACM Trans. Database Syst. 9, 2 (June 1984), 283-308.
[25]
MENDELZON, A. O. Database states and their tableaux. ACM Trans. Database Syst. 9, 2 (June 1984), 264-282.
[26]
NICHOLAS, J-M., AND GALLAIRE, H. Data bases: Theory vs interpretation. In Logic and Data Bases. Plenum Press, New York, 1978, pp. 33-54.
[27]
OSBORN, S. Towards a universal relation interface. In Proceedings of the 5th International Conference on Very Large Data Bases (Rio de Janeiro, Brazil, Oct. 3-5). ACM, New York, 1979, pp. 52-60.
[28]
SAOV, Y. Can we use the universal instance assumption without using nulls? in Proceedings of the SIGMOD International Conference on Management of Data (Ann Arbor, Mich., Apr. 29-May I ). ACM, New York, 198 I, pp. 108-120.
[29]
SAGIV, Y. A characterization of globally consistent databases and their correct access paths. ACM Trans. Database Syst. 8, 2 (June 1983), 266-286.
[30]
SAGIV, Y. Evaluation of queries in independent database schemes. Unpublished manuscript, 1984.
[31]
SAGIV, Y., ANO YANNAKAKIS, M. Equivalences among relational expressions with the union and difference operators J. ACM 27, 4 (Oct. 1980), 633-655.
[32]
SCrIENI~, K. L., AND PINKERT, J.R. An algorithm for serving multi-relational queries, In Proceedings of the SIGMOD International Conference on Management of Data (Toronto, Ont., Canada, Aug. 3-5). ACM, New York, 1977, pp. 10-19.
[33]
ULLMAN, J.D. Principles of Database Systems. Computer Science Press, Potomac, Va., 1982.
[34]
VASSILIOU, Y. A formal treatment of imperfect information in data management. CSRG TR-123. Univ. Toronto, Toronto, Ont., Canada, Nov., 1980.
[35]
YANNArAKIS, M. Querying weak instances. In Proceedings of the 3rd ACM SIGACT-SIGMOD Symposium on Principles of Database Systems (Waterloo, Ont., Canada, Apr. 2-4). ACM, New York, 1984, pp. 275-280.

Cited By

View all

Recommendations

Reviews

Robert J. Tufts

One of the least-known problems of relational systems as that some database schemes require the user to know implied relational dependencies and logical connections in order to retrieve the correct data. This paper proposes a definition of embedded-complete relational schemes that do not have this undesirable property. It begins by summarizing the basic theory and definitions of relational systems as published in the last few years. This is followed by a discussion of the embedded-complete and independent schemes. The authors then present a polynomial-time algorithm to test for embedded-complete relations and conclude that additional study is needed to find an algorithm for testing embedded completeness for connection-trap-free relations. The main purpose of the paper is to extend relational theory to include embedded-complete relations. A secondary purpose appears to be to support the creation of automatic connections between relations, which would be needed by a universal relation interface system. (Such a system would shield the user from specifying logical connections among relations.) Both purposes are satisfied by the paper, though how automatic connections would be done on even embedded-complete relational schemes is not covered. The strength of this paper is in its rigor and readability. The examples given are useful in showing why embedded completeness is necessary even for simple queries on just a few relations. The length is about right for the material covered and the subject is well presented. Researchers into relational theory and those developing relational database management system utilities will be most interested in this paper. However, database administrators will probably not be interested, as most operational systems now allow the administrator to specify relational views for the user that will avoid the described problem. A good bibliography is included, though one-third of the papers cited were written in conjunction with the authors of this paper.

Access critical reviews of Computing literature here

Become a reviewer for Computing Reviews.

Comments

Information & Contributors

Information

Published In

cover image Journal of the ACM
Journal of the ACM  Volume 34, Issue 2
April 1987
286 pages
ISSN:0004-5411
EISSN:1557-735X
DOI:10.1145/23005
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 April 1987
Published in JACM Volume 34, Issue 2

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)58
  • Downloads (Last 6 weeks)6
Reflects downloads up to 15 Oct 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media