Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

How to format a decimal column in Fast Export - response (2) by rajeev saravanan

$
0
0
Hi, You can try the  following cast( (total_cost  (format 'Z(n times)9.9999')) as varchar(n+6)) ; here n - depends on the size defined say for example if you have defined total_cost as decimal(18,2) then n = 18-1 = 17 in the above case the sql stmtn would be cast( (total_cost  (format 'Z(17)9.9999')) as varchar(23)) ; please let me know if this works        

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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