UMBC CMSC 461 Spring '99 CSEE | 461 | 461 S'99 | lectures | news | Oracle Help | help

Relational Algebra

  • union
  • intersection
  • difference
  • Cartesian product
  • rename
  • select This is different from the SQL select!
  • project
  • natural join
  • division
  • assignment
  • union

    The union of two sets contains all the tuples from each relation.

    intersection

    The intersection of two relations contains all the tuples that are contained in both relations. Can be expressed in terms of the other relations.

    difference

    The difference between two relations contains all the tuples in the first relation that are not present in the section relation.

    Cartesian product

    The Cartesian product takes two relations and produces a relation that contains all possible combinations of the tuples of the first relation combined with each of the tuples of the second relation.

    rename

    The rename operator takes as an input a relation and returns the same relation as output, but under a different name.

    select

    The select operator acts as a horizontal filter for relations.

    project

    The project operator acts as a vertical filter for relations.

    natural join

    The natural join operator takes as input two relations and produces as output a relation whose scheme is the concatenation of the two schemes of the input relations with any duplicate attribute names discarded. Can be expressed in terms of the other relations.

    division

    The division operator takes as input two relations, called the dividend relation (r on scheme R) and the divisor relation (s on scheme S such that all the attributes in S also appear in R and s is not empty. The output of the division operation is a relation on scheme R with all the attributes common with S discarded. Can be expressed in terms of the other relations.

    assignment

    The assignment operation works in a manner similar to a programming language Assignment operator. Can be expressed in terms of the other relations.


    CSEE | 461 | 461 S'99 | lectures | news | help

    Tuesday, 08-Jun-1999 11:59:52 EDT