|
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
|
P. Griffiths Selinger , M. M. Astrahan , D. D. Chamberlin , R. A. Lorie , T. G. Price, Access path selection in a relational database management system, Proceedings of the 1979 ACM SIGMOD international conference on Management of data, May 30-June 01, 1979, Boston, Massachusetts
[doi> 10.1145/582095.582099]
|
 |
25
|
|
| |
26
|
|
 |
27
|
|
 |
28
|
|
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...
Peer to Peer - Readers of this Article have also read:
-
Data structures for quadtree approximation and compression
Communications of the ACM
28, 9
Hanan Samet
-
A hierarchical single-key-lock access control using the Chinese remainder theorem
Proceedings of the 1992 ACM/SIGAPP Symposium on Applied computing
Kim S. Lee
, Huizhu Lu
, D. D. Fisher
-
The GemStone object database management system
Communications of the ACM
34, 10
Paul Butterworth
, Allen Otis
, Jacob Stein
-
Putting innovation to work: adoption strategies for multimedia communication systems
Communications of the ACM
34, 12
Ellen Francik
, Susan Ehrlich Rudman
, Donna Cooper
, Stephen Levine
-
An intelligent component database for behavioral synthesis
Proceedings of the 27th ACM/IEEE conference on Design automation
Gwo-Dong Chen
, Daniel D. Gajski
|