Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TRIM(substr(AI.AIINSURED, 1, instr(AI.AIINSURED, ',', 1, 1)-1)) "Subscriber_Last_Name",
TRIM(substr(AI.AIINSURED, instr(AI.AIINSURED, ',', 1, 1)+1, length(AI.AIINSURED))) "Subscriber_First_Name",
SELECT name Full_name
,SUBSTR(name, 1,INSTR(name,',') -1) last_name
,SUBSTR(name
,INSTR(name,',') + 2
,LENGTH(TRIM(name))-(INSTR(name,',')+
decode(length(trim(substr(trim(name),-2)))
,1,3
,0))) first_name
,decode(length(trim(substr(name,-2)))
,1,SUBSTR(name,-1)) mid_init
from t1;
FULL_NAME LAST_NAME FIRST_NAME MID_INIT
---------------------- ---------- ---------- --------
Rock, F M Rock F M
St. Clair, Mary Ann E St. Clair Mary Ann E
Chung, Wang Chung Wang
FM, Is this an acceptable result?FMRock said:These are company names instead of a persons name. These names end up in the First name field.