Chapter 3: Relational Model
Chapter 3: Relational Model
X (E)
• How to Read it
Result of relational-algebra query
expression E under the name X, and with
the attributes renamed to A1, A2, . . . , An
Aggregate Functions
• It take collection of values and return a
single value as a result
List of aggregate functions
• Sum – returns the sum of values
• Avg – returns the average of values
• Count – returns no. of elements in the collection
• Min – returns the minimum value in the collection
• Max - returns the maximum value in the collection