CP 224 Lecture 02
CP 224 Lecture 02
DNO = 4 (EMPLOYEE)
Select the employee tuples whose salary is greater than $30,000:
SALARY > 30,000 (EMPLOYEE)
cond3>(R)))
The number of tuples in the result of a SELECT is less than
(or equal to) the number of tuples in the input relation R
operations
Necessary in some cases (see JOIN operation
later)
UNION Example
INTERSECTION is denoted by
The result of the operation R S, is a
relation that includes all tuples that are in
both R and S
The attribute names in the result will be the
same as the attribute names in R
The two operand relations R and S must be
“type compatible”