Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 17 Jul 2012 @ 12:37:04 GMT


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


Subj:   Re: How to split full name to first,middle & last
 
From:   naresh.neelam

Hi Vinod,

try this,

     select 'Cisco Zensar ODC' as Name, substr(Name,0,position(' ' in Name)+1)  as First_Name,
     substr(substr(Name,position(' ' in Name)+1),0,position(' ' in substr(Name,position(' ' in
     Name)+1)))  as Middle_Name,
     substr(substr(Name,position(' ' in Name)+1),position(' ' in substr(Name,position(' ' in
     Name)+1))+1)   as Last_Name

Thanks,

Naresh Neelam



     
  <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