Multiple choice technology databases

Identify the correct output --- select ADD_MONTHS(TO_DATE('01-SEP-1995', 'DD-MON-YYYY'), 6) from dual;

  1. 01-MAR-1996

  2. 01-FEB-1996

  3. 07-SEP-1995

  4. 06-SEP-1995

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

ADD_MONTHS adds the specified number of months to a date. Starting September 1, 1995 and adding 6 months: Sep->Oct(1), Nov(2), Dec(3), Jan(4), Feb(5), Mar(6) = March 1, 1996. This function handles year rollovers automatically. Option C shows 6 days instead of months.