Which of the following function does not come under the category of scalar functions?
Which of the following function does not come under the category of scalar functions?
Solution
✅ Correct Option: 4
Scalar functions work on a single value (one row at a time) and return a single value for that row. Numeric, string and date and time functions are all scalar functions.
Aggregate functions such as SUM, AVG, COUNT, MAX and MIN work on a set of rows (a column) and return one summary value for the whole set, so they are not scalar functions.
Options 1, 2 and 3: these are the standard types of scalar functions, applied to one value at a time (for example ROUND, UPPER, NOW).
Related questions:
2026: 23 May Shift 2
2026: 31 May Shift 1
2026: 26 May Shift 1