Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3019

Re: WHAT IS DATENAME EQUIVQLENT FUNCTION IN HANA

$
0
0

I think I am not able to get you,

 

As per your last message, you want to filter out those Data whose month are starting with J for Jan or M for May or March.

 

If that is so. please use the below snippet, where I have tried to replicate the issue.

 

 

SELECT case when
 SUBSTRING(TO_VARCHAR('2016-03-25','YYYY-Mon-DD'),6,1) between NCHAR (65) and NCHAR (65+25) then 'correct' 
 else 'wrong'end as flag FROM DUMMY; -- Checking Char between Capital A till Z

After that you can filter out the 'wrong' in outer select statement.

 

 

Regards,

Chandan


Viewing all articles
Browse latest Browse all 3019

Trending Articles



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