QuestionQ206

VerifiedUsing Single-Row Functions to Customize Output

The SYSDATE function shows the current Oracle Server date as:

21-MAY-19

You want to display the date as:

MONDAY, 21 MAY, 2019

Which statement accomplishes this?

Explanation

TO_CHAR converts a DATE to a formatted character value. FMDAY returns the unpadded full weekday name, DD the day of the month, MONTH the full month name, and YYYY the four-digit year; the commas and spaces in the format model are reproduced. Oracle Database SQL Language Reference: Format Models

Learn more

Community Discussion

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