QuestionQ104

VerifiedManipulating Data

Examine the description of the EMPLOYEES table:

Question Image

NLS_DATE_FORMAT is set to DD-MON-YY.

Which query needs explicit data type conversion?

Explanation

A character value converted to a DATE without an explicit format must conform to the session default date format. DD-MON-YY requires a month abbreviation such as FEB, whereas 10-02-2018 contains a numeric month; it must therefore be converted explicitly with a matching format model, such as TO_DATE('10-02-2018', 'DD-MM-YYYY').

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!