Oracle
1Z0-047 · Question #23
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. Thequerywould executebuttheoutputwouldgive reviewdates 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
Options
- AThe querywouldexecutetogive the desired output.
- BThequerywouldnot execute becausedatefunctions cannot be nested.
- CThequerywould executebuttheoutputwouldgive reviewdates that are Sundays.
- DThequery would not execute becausetheNEXT_DAY function acceptsastring as argument.
How the community answered
(41 responses)- A10% (4)
- B2% (1)
- C83% (34)
- D5% (2)
Community Discussion
No community discussion yet for this question.
