Site any two differences between Single Row Functions and Aggregate Functions.
Two differences between Single Row Functions and Aggregate Functions are:
-
Single Row Functions operate on a single row at a time and return one result per row, whereas Aggregate Functions operate on groups of rows and return one result for a group of rows.
-
Single Row Functions can be used in Select, Where, and Order by clause, whereas Aggregate Functions can be used in the select clause only.
Explanation
The answer is derived from Table 9.16 in the textbook which clearly lists the differences between Single Row Functions and Multiple Row (Aggregate) Functions. The first difference focuses on how they operate (single row vs groups of rows) and their output (one result per row vs one result per group). The second difference highlights the clauses where these functions can be used. Students can also mention examples as a valid difference - Math, String and Date functions for Single Row, and Max(), Min(), Avg(), Sum(), Count() for Aggregate functions.