Oracle Database SQL — Question 164

A session's NLS_DATE_FORMAT is set to DD Mon YYYY.

Which two queries return the value 1 Jan 2019? (Choose two.)

Answer options

Correct answer: B, D

Explanation

Option B correctly uses the DATE keyword to return the date in the session's specified format. Option D also correctly converts the string to a date using the TO_DATE function with the correct format mask. Options A, C, and E do not return the date in the expected format, either due to incorrect syntax or returning a string instead of a date.