QuestionQ160

VerifiedManipulating Data

Refer to the structure of the PROGRAMS table:

Question Image

Which two SQL statements execute successfully?

Choose two
Explanation

ADD_MONTHS returns a DATE, so it can be used with SYSDATE in NVL. MONTHS_BETWEEN returns a number; converting that result with TO_CHAR makes it compatible with the character fallback value 'Ongoing'.

Community Discussion

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