Question: For each of the SQL aggregate functions sum, count, min and max, show how to compute the aggregate value on a multiset S1 S2,
For each of the SQL aggregate functions sum, count, min and max, show how to compute the aggregate value on a multiset S1 ∪ S2, given the aggregate values on multisets S1 and S2.
Based on the above, give expressions to compute aggregate values with grouping on a subset S of the attributes of a relation r (A, B, C, D, E), given aggregate values for grouping on attributes T ⊇ S, for the following aggregate functions:
a. sum, count, min and max
b. avg
c. standard deviation
Step by Step Solution
3.32 Rating (164 Votes )
There are 3 Steps involved in it
Answer Given aggregate values ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
16-CS-DB (423).docx
120 KBs Word File
