Skip to main contentSkip to solution

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).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question