
PUZZLE 27 FINDING EQUAL SETS 115
PUZZLE
27 FINDING EQUAL SETS
Set theory has two symbols for subsets. One is a “horseshoe” on its side
(⊂), which means that set A is contained within set B and is sometimes
called a proper subset. The other is the same symbol with a horizontal
bar under it (⊆), which means “contained in or equal to,” which is
sometimes called just a subset or containment operator.
Standard SQL has never had an operator to compare tables against
each other. Several college textbooks on relational databases mention a
CONTAINS predicate that does not exist in standard SQL. Two such
offenders are An Introduction to Data Base Systems ...