Q126 The EMPLOYEES table contains columns EMP_ID of data type NUMBER and HIRE_DATE of data type DATE.
You want to display the date of the first Monday after the completion of six months since hiring. The NLS_TERRITORY parameter is set to AMERICA in the session and, therefore, Sunday is the first day on the week.
Which query can be used?
- (A). SELECT emp_id, ADD_MONTHS(hire_date, 6), NEXT_DAY(‘MONDAY’) FROM employees;
- (B). SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), ‘MONDAY’) FROM employees;
- (C). SELECT emp_id, NEXT_DAY(MONTHS_BETWEEN(hire_date, SYSDATE), 6) FROM employees;
- (D). SELECT emp_id, NEXT_DAY(ADD_MONTHS(hire_date, 6), 1) FROM employees;
Xem thêm:
- Tìm kiếm và thay thế text trong VIM (find and replace with VIM)
- Q34 Which three statements are true about the Automatic Diagnostic Repository (ADR)?
- Quản trị Temporary Tablespace trong môi trường Oracle Multitenant (CDB và PDB)
- Q11. A snapshot copy PDB does not depend on an existing storage snapshot of the source PDB?
- Q104. A container database called CDB1 is OMF-enabled
