Which of the following is illegal?
A. SELECT SYSDATE - SYSDATE FROM DUAL;
B. SELECT SYSDATE - (SYSDATE - 2) FROM DUAL;
C. SELECT SYSDATE - (SYSDATE + 2) FROM DUAL;
D. None of these
Answer: Option D
Solution(By Examveda Team)
SELECT SYSDATE - SYSDATE FROM DUAL; outputs 0
SELECT SYSDATE - (SYSDATE - 2) FROM DUAL; outputs 2
SELECT SYSDATE - (SYSDATE + 2) FROM DUAL; outputs -2
Join The Discussion
Comments ( 1 )
A. Structured Query Language
B. Structured Query List
C. Simple Query Language
D. None of these
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
A. Data Definition Language(DDL)
B. Data Manipulation Language(DML)
C. Both of above
D. None
Which operator performs pattern matching?
A. BETWEEN operator
B. LIKE operator
C. EXISTS operator
D. None of these
What operator tests column for the absence of data?
A. EXISTS operator
B. NOT operator
C. IS NULL operator
D. None of these
How can a future date be subtracted from current date??