Hello all -
Trying to break the name - i've got some feedback & tried to follow but got lost somewhere in the middle...please help!
alpha = WELCH,NORMAN,R
need to break it into first last & mi fields:
here is what i did
the above code is good
gives NORMAN with comma
don't have the third one either
Trying to break the name - i've got some feedback & tried to follow but got lost somewhere in the middle...please help!
alpha = WELCH,NORMAN,R
need to break it into first last & mi fields:
here is what i did
Code:
SUBSTR(alpha,1,POSSTR(alpha,',')-1) as last_name
Code:
SUBSTR(alpha,POSSTR(alpha,',')+1,(LOCATE(',' ,alpha,(POSSTR(alpha,',')+1))-POSSTR(alpha,','))) as first_name
don't have the third one either