Table of Contents

About

The select operator is a relational operator that select the rows of a relation.

Visualisation

select vs project

Algebra Of Tables

Notation

Selection Algebra

This can be read as:

  • Keep rows that satisfy the condition c (ie predicate)
  • Delete rows that fail the condition c (ie predicate)

Example

Select the shirts that satisfy the condition color=blue

  • Relational Algebra Notation

<MATH> \LARGE \sigma_{(color='Blue')} Shirts </MATH>

  • SQL Notation
SELECT * FROM Shirts WHERE color='Blue'