𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Expressive power of SQL

✍ Scribed by Leonid Libkin


Publisher
Elsevier Science
Year
2003
Tongue
English
Weight
254 KB
Volume
296
Category
Article
ISSN
0304-3975

No coin nor oath required. For personal study only.

✦ Synopsis


It is a folk result in database theory that SQL cannot express recursive queries such as reachability; in fact, a new construct was added to SQL3 to overcome this limitation. However, the evidence for this claim is usually given in the form of a reference to a proof that relational algebra cannot express such queries. SQL, on the other hand, in all its implementations has three features that fundamentally distinguish it from relational algebra: namely, grouping, arithmetic operations, and aggregation.

In the past few years, most questions about the additional power provided by these features have been answered. This paper surveys those results, and presents new simple and self-contained proofs of the main results on the expressive power of SQL. Somewhat surprisingly, tiny di erences in the language deΓΏnition a ect the results in a dramatic way: under some very natural assumptions, it can be proved that SQL cannot deΓΏne recursive queries, no matter what aggregate functions and arithmetic operations are allowed. But relaxing these assumptions just a tiny bit makes the problem of proving expressivity bounds for SQL as hard as some long-standing open problems in complexity theory.


πŸ“œ SIMILAR VOLUMES


SQL
✍ Folgieri, R. πŸ“‚ Fiction πŸ“… 2011 🌐 UND βš– 19 KB
SQL
✍ Anonimo πŸ“‚ Fiction πŸ“… 2011 🌐 UND βš– 15 KB
SQL
✍ Tesoro, Dipartimento del πŸ“‚ Fiction πŸ“… 2011 🌐 UND βš– 186 KB
Semantics and Expressive Power of Nondet
✍ Fosca Giannotti; Dino Pedreschi; Carlo Zaniolo πŸ“‚ Article πŸ“… 2001 πŸ› Elsevier Science 🌐 English βš– 201 KB

Nondeterministic extensions are needed in logic-based languages, such as first-order relational languages and Datalog, to enhance their expressive power and support the efficient formulation of low-complexity problems and database queries. In this paper, we study the semantics and expressive power o