Which statement is true regarding this query?

View the Exhibit and examine the description of the EMPLOYEES table. Evaluate the following SQL statement:
SELECT first_name, employee_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) "Review" FROM employees; The query was written to retrieve the FIRST_NAME, EMPLOYEE_ID, and review date for employees. The review date is the first Monday after the completion of six months of the hiring. The NLS_TERRITORY parameter is set to AMERICA in the session.
Which statement is true regarding this query?

View the Exhibit and examine the description of the EMPLOYEES table

Evaluate the following SQL statement:
SELECT first_name, employee_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) “Review” FROM employees;

The query was written to retrieve the FIRST_NAME, EMPLOYEE_ID, and review date for employees. The review date is the first Monday after the completion of six months of the hiring. The NLS_TERRITORY parameter is set to AMERICA in the session.

Which statement is true regarding this query?

A.
The query would execute to give the desired output.

B.
The query would not execute because date functions cannot be nested.

C.
The query would execute but the output would give review dates that are Sundays.

D.
The query would not execute because the NEXT_DAY function accepts a string as argument.



Leave a Reply 3

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


user

user

select NEXT_DAY(ADD_MONTHS(sysdate, 1), 1) from dual;

Cindy

Cindy

Why the answer is C?

J

J

Because the first day of the week is a sunday. To return monday, you need to use 2 not 1.