scispace - formally typeset
Proceedings ArticleDOI

Programming primitives for database languages

Ashok K. Chandra
- pp 50-62
Reads0
Chats0
TLDR
This paper examines a number of programming primitives in query languages for relational databases and shows that equality cannot be simulated using all the other primitives, generic variables can be simulated with only ranked variables, and that with bounded loops one can determine the isomorphism class of the database when generic variables are allowed, but not otherwise.
Abstract
This paper examines a number of programming primitives in query languages for relational databases The basic framework is a language based on relational algebra, whose variables take relations as values The primitives considered are (i) looping, (ii) counters, (iii) generic (or unranked) variables, (iv) equality, (v) bounded looping (which corresponds to counting the number of tuples in a relation), and (vi) isomorphism class (which corresponds to knowing the isomorphism class of the data base) A comparison diagram is given relating all combinations of these six primitives, and several of the resulting classes of queries are characterized by their complexity or algebraic properties It is shown, for example, that equality cannot be simulated using all the other primitives, that generic variables (with loops) cannot be simulated with only ranked variables and all the other primitives, and that with bounded loops one can determine the isomorphism class of the database when generic variables are allowed, but not otherwise

read more

Citations
More filters
Proceedings ArticleDOI

The complexity of relational query languages (Extended Abstract)

TL;DR: The pattern which will be shown is that the expression complexity of the investigated languages is one exponential higher then their data complexity, and for both types of complexity the authors show completeness in some complexity class.
Journal ArticleDOI

Relational queries computable in polynomial time

TL;DR: The rotary ball valve includes a generally annular seal which is held in place by an edge anchored annular retainer which is oversized for the valve housing and on installation resides in a state of compression.
Journal ArticleDOI

Structure and complexity of relational queries

TL;DR: In this article, a fixpoint query hierarchy is proposed to classify queries on relational data bases according to their structure and their computational complexity using the operations of composition and fixpoints, and a Σ-π hierarchy of height ω2 is defined, and its properties investigated.
Journal ArticleDOI

Computable queries for relational data bases

TL;DR: The main result is the completeness of a simple programming language which can be thought of as consisting of the relational algebra augmented with the power of iteration.
Journal ArticleDOI

Datalog extensions for database queries and updates

TL;DR: Deterministic and non-deterministic extensions of Datalog with fixpoint semantics are proposed, and their expressive power characterized, to overcome the limited expressive power available with purely declarative semantics.
References
More filters
Journal ArticleDOI

A relational model of data for large shared data banks

TL;DR: In this article, a model based on n-ary relations, a normal form for data base relations, and the concept of a universal data sublanguage are introduced, and certain operations on relations are discussed and applied to the problems of redundancy and consistency in the user's model.
Journal Article

A relational model of data for large shared data banks. 1970

TL;DR: A model based on n-ary relations, a normal form for data base relations, and the concept of a universal data sublanguage are introduced and certain operations on relations are discussed and applied to the problems of redundancy and consistency in the user's model.

Principles of Database Systems

TL;DR: A large part of as mentioned in this paper is a description of relations, their algebra and calculus, and query languages that have been designed using these concepts, and explanations of how the theory can be used to design good systems.
Journal ArticleDOI

The polynomial-time hierarchy☆

TL;DR: The problem of deciding validity in the theory of equality is shown to be complete in polynomial-space, and close upper and lower bounds on the space complexity of this problem are established.
Proceedings ArticleDOI

Optimal implementation of conjunctive queries in relational data bases

TL;DR: It is shown that while answering conjunctive queries is NP complete (general queries are PSPACE complete), one can find an implementation that is within a constant of optimal.