Q66 You need to calculate the number of days from 1st January 2019 until today.
Dates are stored in the default format of DD-MON-RR.
Which two queries give the required output? (Choose two.)
- (A). SELECT TO_CHAR(SYSDATE,’DD-MON-YYYY’) – ’01-JAN-2019′ FROM DUAL;
- (B). SELECT ROUND(SYSDATE – ’01-JAN-2019′) FROM DUAL;
- (C). SELECT ROUND(SYSDATE – TO_DATE(’01/JANUARY/2019′)) FROM DUAL;
- (D). SELECT TO_DATE(SYSDATE, ‘DD/MONTH/YYYY’) – ’01/JANUARY/2019′ FROM DUAL;
- (E). SELECT SYSDATE – TO_DATE(’01-JANUARY-2019′) FROM DUAL;
Xem thêm:
- Q142 What is true about non-equijoin statement performance?
- Lightning Network trong mạng Bitcoin là gì?
- Trí tuệ nhân tạo và an ninh mạng: Đối đầu với hacker bằng AI
- Sử dụng RMAN recovery catalog trong Oracle Database
- Q46. The HR_ROOT Application container must support the execution of a query on a table shared by application local PDBs PDB1 and PDB2, and remote PDB PDB3.