Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: SQL BETWEEN in HANA

$
0
0

Hello VijayKumar,

 

That's perfect.

 

I really appreciate your effort to help fix our issues.

 

Meanwhile I have a question.

 

For example a column name "ID" has a value 00001886. I would want to trim the last four values of "ID" column i.e 1886 and then change the datatype of it to decimal(9,4). I do the following:

 

table_2= CE_PROJECTION(:table_2,["NAME",CE_CALC(cast(RIGHT("ID",4)) as decimal(9,4)) as  "ID"]);

 

Currently I am getting an error sql syntax error: incorrect syntax near "cast". I am really confused with these quotes and stuff. Sometimes I feel they made it simply more complex.

 

Suggestion?


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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