ACM Home Page
Please provide us with feedback. Feedback
Formal semantics of SQL queries
Full text pdf formatPdf (1.39 MB)
Source ACM Transactions on Database Systems (TODS) archive
Volume 16 ,  Issue 3  (September 1991) table of contents
Pages: 513 - 534  
Year of Publication: 1991
ISSN:0362-5915
Authors
M. Negri  Univ. di Brescia, Brescia, Italy
G. Pelagatti  Politecnico di Milano, Milan, Italy
L. Sbattella  Politecnico di Milano, Milan, Italy
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 27,   Downloads (12 Months): 207,   Citation Count: 9
Additional Information:

abstract   references   cited by   index terms   review   collaborative colleagues   peer to peer  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/111197.111212
What is a DOI?

ABSTRACT

The semantics of SQL queries is formally defined by stating a set of rules that determine a syntax-driven translation of an SQL query to a formal model. The target model, called Extended Three Valued Predicate Calculus (E3VPC), is largely based on a set of well-known mathematical concepts. The rules which allow the transformation of a general E3VPC expression to a Canonical Form, which can be manipulated using traditional, two-valued predicate calculus are also given; in this way, problems like equivalence analysis of SQL queries are completely solved. Finally, the fact that reasoning about the equivalence of SQL queries using two-valued predicate calculus, without taking care of the real SQL semantics can lead to errors is shown, and the reasons for this are analyzed.


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
 
2
AHO, A. V., SAGIV, Y., AND ULLMAN, J.D. Equivalence of relational expressions. SIAM J. Comput. 8 (1979), 218-246.
 
3
AMERICAN NATIONAL STANDARD INSTITUTE. American National Standard Database Language SQL. ISO/TC97/SC21/WG5-15, n. 90, Washington D.C., 1985.
 
4
 
5
 
6
CHAMBERLIN, D. D. ET AL. Sequel 2: A unified approach to data definition, manipulation, and control. IBM J. Res. Dev. 20 (1976), 560-575.
 
7
CODD, E.F. Understanding relations (Installment 7) FDT Bull. ACM-SIGMOD 7 (1975), 23-28.
8
 
9
 
10
 
11
GALLAIRE, H. Impacts of logic on data bases. In Proceedings of the 7th Conference on Very Large Data Bases (Cannes, 1981).
12
 
13
 
14
GRANT, J. Null values in a relational database. Inf. Process. Lett. 5 (1977), 156-157.
15
16
17
 
18
KLUG, A. On inequality tableaux. Computer Science Tech Rep. 403, Univ. of Wisconsin, Madison, 1980.
19
20
 
21
NEGRI, M., PELAGATTI, G., AND SBATTELLA, L. The effect of three-valued predicates on the semantics and equivalence of SQL queries Tech Rep. 85-27, Dip di Elettromca, Politecnico di Milano, 1985.
22
23
24
25
 
26
27
28

CITED BY  9
 
 
 
 


REVIEW

"Marcos P. Sivitanides : Reviewer"

The objective of this paper, as stated in the first section, is to give a complete formal definition of the semantics of SQL queries by stating a set of rules determining a syntax-driven translation of an SQL query to a formal model called ext  more...

Collaborative Colleagues:
M. Negri: colleagues
G. Pelagatti: colleagues
L. Sbattella: colleagues

Peer to Peer - Readers of this Article have also read: