Exam 1z0-071 All QuestionsBrowse all questions from this exam
Question 153

Examine this query:

SELECT SUBSTR(SYSDATE, 1, 5) "Result" FROM DUAL;

Which statement is true?

    Correct Answer: D

    The query executes successfully with an implicit data type conversion. The SYSDATE function returns a DATE value, but when passed to the SUBSTR function, it is implicitly converted to a string in the default date format, allowing the substring operation to succeed.

Discussion
OrakolOption: D

Correct answer is D - it executes successfully, my result: 27-02

yaya32Option: D

D works -> implicit conversion!

Rik92Option: D

D, implicit conversion works

jfc1Option: D

select sysdate from dual; --Result : 2/20/2023 10:32:16 AM select substr(sysdate,1,5) as "xxx" from dual; --Result: 20-FE

lucemqyOption: D

D tried it and worked