Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SQL Script Calculation View: CE_CALC variable conversion

$
0
0

Hello,

 

I am trying to replace a field value that contains '1,001.000 lb' with '1001.000'.  If at all possible I would further like to convert '1001.000' to a number.  Is it possible to accomplish the above in a CE_CALC function?

 

This is what the Oracle SQL code would look like for this requirement:

 

select to_number(replace(replace('1,001.000 lb', ' lb', ''), ',', ''))
from dual

 

Result: 1001

 

Thanks,
Victoria


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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