Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 16 Jul 2012 @ 13:42:09 GMT


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


Subj:   Re: How to split full name to first,middle & last
 
From:   debojit.pal

Hi Vinod,

You can use this query -

     Sel substr ('Vamsi Charan K', 1, (position(' ' in 'Vamsi Charan K') -1)) as Fname,
     substr((Substr('Vamsi Charan K', (Position(' ' In 'Vamsi Charan K') +1),
     100)), 1, (Position(' ' In (Substr('Vamsi Charan K', (Position(' ' In 'Vamsi
     Charan K') +1), 100))) - 1)) as Mname,
     substr((Substr('Vamsi Charan K', (Position(' ' In 'Vamsi Charan K') +1),
     100)), (Position(' ' In (Substr('Vamsi Charan K', (Position(' ' In 'Vamsi
     Charan K') +1), 100))) + 1), 100) as Lname;

Thanks,

Debojit.



     
  <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