Hello,In case if they are currently in the database and you need to move them to some other table/database, you can write a UDF with two parameters, one the input string and the other the index. e.g.select udfIndexSubString('William J Clinton', 1); => Williamselect udfIndexSubString('William J Clinton', 2); => Jselect udfIndexSubString('William J Clinton', 3); => ClintonRegards,Adeel
-- If you are stuck at something .... consider it an opportunity to think anew.
String manipulation is not a plus point of SQL. Try out with a recursive SQL that may be of some help...Regards,Adeel
-- If you are stuck at something .... consider it an opportunity to think anew.
You can try with the CASE statement in second field...checking if the string contains two spaces then get middle-name otherwise just select NULL.HTH.Regards,Adeel
-- If you are stuck at something .... consider it an opportunity to think anew.

HiI have some names like William J Clinton, George W Bush etc in a column. It's a char(25) one.I want to separate the first name, middle name and last name and load them into three different columns...can anyone help please.....