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

Data engineering Interview Questions

1)  What all challenges you have faced and how did you overcome from it? Ans:- Challenges Faced and Overcome As a hypothetical Spark develop...