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).
The target-list now contains...
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.