Mohammed Alaslani Blog

April 11, 2010

Relational Set Operators

Filed under: Uncategorized — maslani4 @ 4:42 am

Relational algebra :

Defines theoretical way of manipulating table contents using relational operators

Use of relational algebra operators on existing relations produces new relations

  • UNION INTERSECT
  • DIFFERENCE PRODUCT
  • SELECT PROJECT JOIN DIVIDE
  • UNION: combines all rows from two tables, keeping out duplicate rows.
  • INTERECT: yields only the rows that appear in both tables.
  • DIFFERENCE: yields all rows in one table that are not found in other table.
  • PRODUCT: yields all possible pairs of rows from two tables.
  • SELECT (RESTRICT): yields values for all rows found in a table that satisfy a given condition.
  • PROJECT: yields all value for selected attributes.
  • JOIN: allows information to be combined from two or more tables.
  • Natural join: links tables by selecting only the rows with common values in their common attributes.
  • Left outer join: yields all of the rows in a table, including rows with now matching values from other table.
  • DIVIDE: uses one single column as the divisor and one 2 column as the dividend.

Written by: Mohammed Alaslani

Advertisement

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.