QuestionQ179

VerifiedUsing Conversion Functions and Conditional Expressions

Examine the following incomplete query:

SELECT DATE '2019-01-01' +  
FROM DUAL;  

Which three clauses can replace the missing expression to add 12 hours to the date?

Choose three
Explanation

Oracle permits abbreviated DAY TO SECOND interval literals. An HOUR TO SECOND value of 12:00 represents 12 hours with zero minutes, 0 12 in a DAY TO HOUR literal represents zero days and 12 hours, and a standalone HOUR literal of 12 represents 12 hours. A fractional leading DAY field is invalid, a three-digit leading MINUTE field exceeds its default precision of two, and a trailing minute value of 60 is outside the allowed 0–59 range. Oracle Database SQL Language Reference: Literals

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!