QuestionQ3

VerifiedUsing Single-Row Functions to Customize Output

You want to display the date of the first Monday in the next month and run the following command:

Question Image

What is the result?

Explanation

LAST_DAY(SYSDATE) obtains the last day of the current month, and NEXT_DAY(..., 'MON') returns the next Monday after it—the first Monday of the next month. TO_CHAR validly converts the resulting date to text; FM suppresses month-name padding, double-quoted text is emitted literally, and RRRR is a valid year format element.

Learn more

Community Discussion

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