What is the outcome?

You want to display the date for the first Monday of the next month and issue the following command:
SQL>SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), ‘MON’), ‘dd "is the first Monday for ‘fmmonth rrrr’) FROM DUAL;
What is the outcome?
A. It executes successfully and returns the correct result.
B. It executes successfully but does not return the correct result.
C. It generates an error because TO_CHAR should be replaced with TO_DATE.
D. It generates an error because rrrr should be replaced by rr in the format string.
E. It generates an error because fm and double quotation marks should not be used in the format string.

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “What is the outcome?

  1. the query above is not correct, there is one double quotation missing.

    SELECT TO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE), ‘MON’),
    ‘dd “is the first Monday for” fmmonth rrrr’) FROM DUAL;

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.