Saturday, February 28, 2015

How to Parse First Middle ,Mid Names and Last name from a String



         How to Parse First Middle ,Mid Names and Last name from a String 

USE of REG_EXTRACT Function 


SRC IS :- John M Doe IRA
REG_EXTRACT(NAME,'(\W+)\S+(\W+)\S+(W+)\S+(W+)',1)
REG_EXTRACT(NAME,'(\W+)\S+(\W+)\S+(W+)\S+(W+)',2)
REG_EXTRACT(NAME,'(\W+)\S+(\W+)\S+(W+)\S+(W+)',3)
REG_EXTRACT(NAME,'(\W+)\S+(\W+)\S+(W+)\S+(W+)',4)




FNAME:-John 
MNAME:-M 
LNAME:-Doe 
IDEBTIFIER:-IRA

THANKS:-
:)

No comments:

Post a Comment

 BEST PYSPARK LEARNING SITES https://www.youtube.com/watch?v=s3B8HXLlLTM&list=PL2IsFZBGM_IHCl9zhRVC1EXTomkEp_1zm&index=5 https://www...