Skip to main content

Union

  • Reference work entry
Encyclopedia of Database Systems
  • 46 Accesses

Synonyms

Union

Definition

The union of two relation instances R 1 and R 2 over the same set of attributes U – denoted by R 1 ∪ R 2 – is another relation instance over U containing precisely the set of tuples t such that t ∈ R 1 or t ∈ R 2.

Key Points

The union is one of the primitive operators of the relational algebra. It is a natural extension of the set union to relations; the additional restriction is that it can be applied only to relations over the same set of attributes. However the union of two arbitrary relations having the same arity can be obtained by first renaming the attributes of one of the two relations.

As an example, consider a relation Students over attributes (number, name), containing tuples {(1001,Black), (1002, White)}, and a relation Employees over attributes (number, name), containing tuples {(1001,Black), (1003, Brown)}. Then the union Students ∪ Employees is a relation over attributes (number, name) with tuples {(1001, Black), (1002, White), (1003, Brown)}.

In...

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 2,500.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer Science+Business Media, LLC

About this entry

Cite this entry

Sirangelo, C. (2009). Union. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_1261

Download citation

Publish with us

Policies and ethics