Skip to content
Advertisement

Date Conversion Issues ORACLE SQL

this is going to be a totally newb question but my google-fu isn’t landing me anything timely so I figured I would ask you

Trying to do this query:

But the predicate column is formatted as such:

I’m guessing my TO_CHAR and CAST isn’t sufficient due to the error:

Anyone happen to know off the top of their head how to get past this?

Advertisement

Answer

Use a DATE constant:

You don’t have a time component, so a date literal seems sufficient.

If you have variables, you can use COALESCE():

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement