Discussion :: SQL Basics
- 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
Explanation :
SELECT SYSDATE - SYSDATE FROM DUAL; outputs 0
SELECT SYSDATE - (SYSDATE - 2) FROM DUAL; outputs 2
SELECT SYSDATE - (SYSDATE + 2) FROM DUAL; outputs -2
Be The First To Comment