I would like to do a date compare in a SQL view.
Case When ORDER_DATE < CURRENT DATE
Then ......
Problem is: ORDER_DATE is a numeric *CYMD field (like 1050613), and CURRENT DATE comes in as a MDY Date field. How can I convert one or the other to get a valid comparison?
Case When ORDER_DATE < CURRENT DATE
Then ......
Problem is: ORDER_DATE is a numeric *CYMD field (like 1050613), and CURRENT DATE comes in as a MDY Date field. How can I convert one or the other to get a valid comparison?





Comment