skip to main content
10.1145/28659.28693acmconferencesArticle/Chapter ViewAbstractPublication PagespodsConference Proceedingsconference-collections
Article
Free Access

Safety and correct translation of relational calculus formulas

Published:01 June 1987Publication History

ABSTRACT

Not all queries in relational calculus can be answered “sensibly” once disjunction, negation, and universal quantification are allowed. The class of relational calculus queries, or formulas, that have “sensible” answers is called the domain independent class, which is known to be undecidable. Subsequent research has focused on identifying large decidable subclasses of domain independent formulas In this paper we investigate the properties of two such classes the evaluable formulas and the allowed formulas. Although both classes have been defined before, we give simplified definitions, present short proofs of their man properties, and describe a method to incorporate equality.

Although evaluable queries have sensible answers, it is not straightforward to compute them efficiently or correctly. We introduce relational algebra normal form for formulas from which form the correct translation into relational algebra is trivial. We give algorithms to transform an evaluable formula into an equivalent allowed formula, and from there into relational algebra normal form. Our algorithms avoid use of the so-called Dom relation, consisting of all constants appearing in the database or the query.

Finally, we describe a restriction under which every domain independent formula is evaluable, and argue that evaluable formulas may be the largest decidable subclass of the domain independent formulas that can be efficiently recognized.

References

  1. Ack68.W Ackermann. Solvable Cases of the Decision Problem. North-Holland, Amsterdam, 1968Google ScholarGoogle Scholar
  2. Dec86.H Decker. lntegrity enforcement in deductive databases. In 1st lnt'l Conference on Expert Dalabase Systems, pages 271-285, 1986Google ScholarGoogle Scholar
  3. Dem82.R Demolombe. Syntactscal Characteriation of a Subset of Domain Independent Formulas. Techmcal Report, ONERA- CERT, 1982Google ScholarGoogle Scholar
  4. DiP69.R A DIPaola. The recurmve unsolvability of the decision problem for the class of defimte formulas. JACM, 16(2) 324-324, 1969 Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Fag80.R Fagin. Horn clauses and database dependencies. In 12th Ann ACM Symp. on Threory of Computing, pages 123-134 1980 Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Kuh67.J L Kuhns. Answering Questions by Computer A Logtcal Study. Technlcal Report RM-5428-PR, Rand Corp, 1967Google ScholarGoogle Scholar
  7. LT84.J W Lloyd and R W Topor. Making Prolog more expressive. Journal of Logic Programming, 1(3) 225-240, 1984Google ScholarGoogle ScholarCross RefCross Ref
  8. Mak81.J A Makowsky. Characterizingng data base dependencms In 8th Coll on Automata, Languages and Programming, Springer Verlag, 1981 Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Man74.Z Manna. Mathemalzcal Theory of Computatzon. McGraw-Hill, New York, 1974 Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. MUVG86.K Morns,J D Ullman, and A Van Gelder. Design overview of the Nail syslem. In Third Int'l Conf on Logic Programming, }uly 1986 Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. ND82.J -M Nicolas and R Demolombe. On the Stability of Relational Queries. Technical Report, ONERA-CERT, 1982Google ScholarGoogle Scholar
  12. Nic82.J-M Nicolas. Logic for improving integrity checking in relational databases. Acta Informatica, 18(3) 227-253, 1982Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Top86.R Topor. Domain Independent Formulas and Databases. Technical Report 86/11, Unniv of Melbourne, 1986 (To appear in Theoretical Computer Science)Google ScholarGoogle Scholar
  14. Ull80.J D Ullman. Principles of Database Systems. Computer Science Press, Rockville, MD, 1980 (Revised Ed 1982) Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Safety and correct translation of relational calculus formulas

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Conferences
            PODS '87: Proceedings of the sixth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems
            June 1987
            363 pages
            ISBN:0897912233
            DOI:10.1145/28659

            Copyright © 1987 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 1 June 1987

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            Overall Acceptance Rate642of2,707submissions,24%

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader