Skip to main contentSkip to solution

Which of the following are single row functions?

(A). LTRIM( )

(B). DAYNAME( )

(C). AVG( )

(D). MOD( )

Solution

✅ Correct Option: 2

A single row function works on one row at a time and returns one result per row. LTRIM() (text), DAYNAME() (date) and MOD() (numeric) are all single row functions, so (A), (B) and (D) are correct.


AVG() is an aggregate (multiple row) function. It works on a group of rows and returns one value for the whole group, so (C) is not a single row function. This is the trap in Options 1, 3 and 4.

Other aggregate functions in the same category are SUM(), COUNT(), MAX() and MIN().

Keyboard Shortcuts

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