SQL Join
cross join – match combinations
union – stack, unique
union all – stack, include duplicates
intersect – result in the intersection
except – result in the exception
semi join – select rows from 1st table that are ALSO present in 2nd table
where (field) in (table)
anti join – select rows from 1st table that are NOT present in 2nd table
where (field) not in (table)
Subclause can be used instead of group by!
Comments
Post a Comment