Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 09 Nov 2009 @ 10:59:46 GMT


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


Subj:   Re: Need to select only the mantissa part
 
From:   prahlad.k.patidar

Hi Ajai,

A crude way of doing this could be

     sel substr( trim(cast(column_name as char(10)))
       , index(trim(cast(column_name as char(10))) , '.')+1)

e.g.:

     sel substr( trim(cast(33.43 as char(10)))
       ,index( trim(cast(33.43 as char(10))) , '.')+1)

regards

Prahlad



     
  <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