Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 16 Jul 2012 @ 14:01:53 GMT


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


Subj:   Re: How to split full name to first,middle & last
 
From:   Sireesha.Puppala

Hi Vinod,

You could use index to full fill this

Use index to find the position of space "SPACE" in full name and then use the position to get

- firstname =fullname from 1st till (SPACE-1)

- lastname = fullname from (SPACE+1)

          SELECT      INDEX(fullname ,' ') AS "a", SUBSTR(fullname,1, a-1 ) ,
          SUBSTR(fullname,a+1 )

Hope this helps!


Cheers

SP



     
  <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: 23 Jun 2019