Skip to main content

Projection

  • Reference work entry
  • 58 Accesses

Definition

Given a relation instance R over set of attributes U, and given a subset X of U, the projection of R on X – denoted by π X (R) – is defined as a relation over set of attributes X whose tuples are the restriction of tuples of R to attributes X. That is t ∈ π X (R) if and only if t = t′(X) for some tuple t′ of R (here t′(X) denotes the restriction of t′ to attributes X).

Key Points

The projection is one of the basic operators of the relational algebra. It operates by “restricting” the input relation to some of its columns.

The arity of the output relation is bounded by the arity of the input relation. Moreover the number of tuples in π X (R) is bounded by the number of tuples in R. In particular, the size of π X (R) can be strictly smaller than the size of R since different tuples of R may have the same values on attributes X.

As an example, consider a relation Goods over attributes (code, price, quantity), containing tuples {(001, 5.00, 10), (002, 5.00, 10), (003, 25.00,...

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

Buying options

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

Learn about 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). Projection. In: LIU, L., ÖZSU, M.T. (eds) Encyclopedia of Database Systems. Springer, Boston, MA. https://doi.org/10.1007/978-0-387-39940-9_1258

Download citation

Publish with us

Policies and ethics