Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 06 Apr 2012 @ 14:00:38 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Substr from right on decimal number
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, April 06, 2012 07:49 -->

Hi All,

I want to split a decimal number into two:

1. Before decimal

2. After decimal


I want to store them separately and concat them with '-' (a hyphen) between the before and after decimal number.

Eg. 302.445500

Then output should be 302-445500

Can anybody help me with this? How to do this?


Cheers



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023