Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Determine if valid date via SQL

$
0
0

Hi folks,

 

I'm trying to find the equivalent of IS_DATE function to determine if a field contains a valid date in SQL select statement;

 

ie: something like this

 

select

CASE WHEN IS_DATE(TO_CHAR(BLDAT, 'MM/DD/YYYY')) = 'Y'

THEN

<DO SOMETHING>

ELSE

<DO SOMETHING ELSE>

END As DateCheck

etc.....

 

Except IS_DATE is not a valid function in HANA.  Anybody know another way to do this?

 

Thanks,

-Patrick


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>