diff --git a/slides/cse4562sp2018/2018-01-31-SQL+Physical.html b/slides/cse4562sp2018/2018-01-31-SQL+Physical.html index e0ac7c2a..16bea8b4 100644 --- a/slides/cse4562sp2018/2018-01-31-SQL+Physical.html +++ b/slides/cse4562sp2018/2018-01-31-SQL+Physical.html @@ -237,7 +237,7 @@ SELECT tree_id FROM Trees WHERE spc_common = 'sycamore maple'

Computes the set-union of any two union-compatible sets of tuples

-

Adding ALL preserves duplicates across the inputs.

+

Adding ALL preserves duplicates across the inputs (bag-union).

@@ -247,15 +247,13 @@ FROM relationlist WHERE condition GROUP BY groupinglist - HAVING group-condition + HAVING groupcondition
-

The target-list now contains...

    -
  1. grouped attributes
  2. -
  3. aggregate expressions
  4. -

-

Targets of type (1) must be a subset of the grouping-list

+

The targetlist now contains (a) Grouped attributes, and (b)Aggregate expressions.

+

Targets of type (a) must be a subset of the grouping-list

(intuitively each answer tuple corresponds to a single group, and each group must have a single value for each attribute)

+

groupcondition is applied after aggregation and may contain aggregate expressions.