nerdexam
Oracle

1Z0-047 · Question #191

View the Exhibit and examine the description of the EMPLOYEES table. Evaluate the following SQL statement: SELECT first_name, employee_id, NEXr_DAY(ADD_MONTHS(hire_date, 6), 1) "Review" FROM…

The correct answer is C. The query would execute but the output would give review dates that are Sundays. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the description of the EMPLOYEES table. Evaluate the following SQL statement:

SELECT first_name, employee_id, NEXr_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?

Exhibit

1Z0-047 question #191 exhibit

Options

  • AThe query would execute to give the desired output.
  • BThe query would not execute because date functions cannot be nested.
  • CThe query would execute but the output would give review dates that are Sundays.
  • DThe query would not execute because the NEXT_DAY function accepts a string as argument.

How the community answered

(37 responses)
  • A
    5% (2)
  • B
    11% (4)
  • C
    81% (30)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-047 Practice