Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 May 2008 @ 13:19:16 GMT


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


Subj:   Extracting value with Substring and position
 
From:   Venkateshwarlu Devarneni

HI, FRNDS..

ANY BODY HELP ME REGARDING FOLLOWING QUERY..THIS IS VERY URGENT FOR ME

I HAVE FOLLOWING DATA

     Input
     0.0389 (1.5mil)
     0.023 (0.9mil)
     0.03048 (1.2mil)
     Other
     0.020 (.8mil)
     0.018 (.7mil)
     0.025 (1mil)
     Null

AND I WANT OUTPUT IN FOLLOWING WAY

     * Output*
     1.5
     0.9
     1.2
     0.02
     0.7
     0.025

and i wrote the query like this please any body make change and send correct replay

     select position('(' in substring('invalue' from 1))
     from dev2_db.assignment;

Larsen & Toubro Infotech Ltd.



     
  <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: 27 Dec 2016