nerdexam
Oracle

1Z0-007 · Question #21

Which two tasks can your perform by using the TO_CHAR function? (Choose two)

The correct answer is C. Convert 10 to `10' E. Convert a date to a character expression. TO_CHAR(x) function is used to convert the value x to a character or converts a date to a character string using formatting conventions. Incorrect Answers A: This function cannot convert the number to the string representing number spelled out. B: TO_CHAR() function cannot…

Using Functions (Single-Row, Group, Conversion, Conditional)

Question

Which two tasks can your perform by using the TO_CHAR function? (Choose two)

Options

  • AConvert 10 to `TEN'
  • BConvert `10' to 10
  • CConvert 10 to `10'
  • DConvert `TEN' to 10
  • EConvert a date to a character expression
  • FConvert a character expression to a date

How the community answered

(21 responses)
  • A
    5% (1)
  • C
    71% (15)
  • D
    5% (1)
  • F
    19% (4)

Explanation

TO_CHAR(x) function is used to convert the value x to a character or converts a date to a character string using formatting conventions. Incorrect Answers A: This function cannot convert the number to the string representing number spelled out. B: TO_CHAR() function cannot convert the character value to a number. TO_NUMBER() function D: This function is not able to convert the string representing number spelled out to the number F: TO_CHAR() function cannot convert a character expression to a date. TO_DATE() function

Topics

#TO_CHAR#conversion functions#date to character#number to character

Community Discussion

No community discussion yet for this question.

Full 1Z0-007 Practice