IT lexicon › Database › Projection

Projection

Database På svenska → Updated: 2026-11-12

A relational algebra operation that selects which columns appear in the output — SELECT name, email FROM users.

Projection is one of five core operations in relational algebra (the mathematics underlying SQL). When you write "SELECT name FROM employees", you're projecting the employees relation down to a single column. The other four are selection (WHERE), union, difference, and Cartesian product — together they form the complete toolkit for expressing queries on relations.

The database uses projection to optimize performance — if a query only needs certain columns, it's faster to read and transmit only those. Column-oriented databases gain massive advantage here because columns live separately on disk; fetching only name and email means never reading the other 20 columns from storage. Projection is often one of the first optimizations applied in a query plan, letting the optimizer reduce data volume before expensive operations like joins.

← Back to the lexicon