- The SQL SELECT command:
SELECT attr1, attr2, ...., attrM
FROM R1, R2, R3, ..., RN
WHERE boolean_expression
|
is processed as
follows:
- Compute
the
Cartesian product
of the relations
R1 × R2 × R3 × ...
× RN
-
Select all the
tuples
in R1 × R2 × R3 × ...
× RN
that satisfy the
condition boolean_expression
-
Project out the
attributes
attr1, attr2, ...., attrM
from the qualifying tuples
in step 2
|
|