Which of the following are Scalar functions?
-
MAX( )
-
MID( )
-
SUM( )
-
NOW( )
B,D
Correct answer
Explanation
Scalar functions operate on single values and return single values. MID() extracts a substring from a text value, and NOW() returns the current timestamp - both are scalar. MAX() and SUM() are aggregate functions that operate on multiple rows and return summary values.