QuestionQ288Verified/Reporting Aggregated Data Using the Group FunctionsCopy linkReport a problemAsk AstroTutorSave questionWhich SQL statement produces a numeric value?ASELECT ADD_MONTHS(MAX(hire_Date), 6) FROM EMP;BSELECT ROUND(hire_date) FROM EMP;CSELECT sysdate-hire_date FROM EMP;DSELECT TO_NUMBER(hire_date + 7) FROM EMP;Show AnswerAnswerExplanationSubtracting two Oracle DATE values returns the number of days between them, including any fractional-day component. Therefore, sysdate - hire_date produces a numeric value. ADD_MONTHS and date ROUND return DATE values, while TO_NUMBER does not directly accept a date expression as a supported numeric conversion input.Learn moreOracle Database SQL Language Reference: Date ArithmeticOracle Database SQL Language Reference: ADD_MONTHSShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion