QuestionQ11Verified/Retrieving data using the SQL SELECT statementCopy linkReport a problemAsk AstroTutorSave questionWhich two of the following queries execute successfully?Choose twoASELECT INTERVAL '1' DAY - INTERVAL '1' MINUTE FROM DUALBSELECT SYSTIMESTAMP + INTERVAL '1' DAY FROM DUAL;CSELECT INTERVAL '1' DAY - SYSDATE FROM DUAL;DSELECT INTERVAL '1' DAY + INTERVAL '1' MONTH FROM DUAL;ESELECT SYSDATE * INTERVAL '1' DAY FROM DUAL;Show AnswerAnswerExplanationOracle supports subtraction between compatible INTERVAL DAY TO SECOND values and addition of a day-to-second interval to a timestamp. It does not support arithmetic that subtracts a DATE from an interval or multiplies a DATE by an interval, and INTERVAL DAY and INTERVAL MONTH belong to incompatible interval families.Learn moreOracle Database: Data Types, Operators, and ExpressionsShow comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion