23-M4-File Organization - Single level indexing-09-09-2024
23-M4-File Organization - Single level indexing-09-09-2024
and Calculus
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”
{uv | ( q) ( r) ( s) ( t) ( w) ( x) ( y) ( z)
(EMPLOYEE(qrstuvwxyz) and q=‘John’ and r=‘B’ and
s=‘Smith’)}