Basic Structure



next up previous
Next: Set Operations & Up: SQL Previous: SQL

Basic Structure

  1. Basic structure of an SQL expression consists of select, from and where clauses.
  2. Typical query has the form

    where each represents an attribute, each a relation, and is a predicate.

  3. This is equivalent to the relational algebra expression

  4. A simple example:

    will find the names of all branches in the deposit relation.



Page created and maintained by Osmar R. Zaï ane
Last Update: Mon Oct 16 16:41:58 PDT 1995