Which of the following SQL functions can operate on any datatype?
-
TO_CHAR
-
LOWER
-
LPAD
-
MAX
-
CEIL
C
Correct answer
Explanation
LPAD can accept string or numeric arguments because Oracle implicitly converts numbers to strings when needed for padding operations. LOWER and TO_CHAR only work on character/string types, MAX is an aggregate function requiring a specific datatype context, and CEIL operates only on numbers. LPAD's signature allows it to handle inputs from multiple datatypes through implicit conversion.