Relational Algebra: Selection, Projection and Rename
The three unary operators. Selection picks rows, projection picks columns and removes duplicates, and rename makes an expression reusable. Together th...
Selection, projection, set operations, Cartesian product, rename, joins, division and building algebra expressions.
6 notes
The three unary operators. Selection picks rows, projection picks columns and removes duplicates, and rename makes an expression reusable. Together th...
Union, intersection and difference come straight from set theory, but they require union compatibility. Cartesian product combines every pair and is t...
Theta join, equi join and natural join, all defined as a selection over a Cartesian product. The natural join joins on every common attribute and remo...
Inner joins discard unmatched tuples. Outer joins keep them and pad with nulls. Semi join keeps only the left tuples that matched, and anti join keeps...
Division answers questions containing the word every. It is the hardest operator to recognise and the easiest to verify, and it can always be rewritte...
How to turn an English question into an algebra expression, read an expression tree, and apply the equivalence rules an optimiser uses to make the sam...