|
Notation:
γfunc(A)( R ) = apply function func on the arrtibute values A in the relation R |
For the set function func, you can use:
sum = returns the sum of a set of value avg = returns the average of a set of value max = returns the maximum of a set of values min = returns the maximum of a set of values count = returns the cardinality of a set (= # elements) any = returns false if the set is empty, otherwise returns true |
Important note:
|
|
|
|
Answer:
|
|
|
Answer:
|
|
|