I have a column that has data stored in full name format, for example:
Tom Smith
Andrew Smith
Is there a function (or combination of functions) I can use to turn this into the following:
T. Smith
A. Smith
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be storing first name and last name separately. In the meantime:
Another alternative:
Both of these deal with single-word names like
PrinceorMadonna– but they won’t properly handle cases where you have middle names. The problem in that case will be:How do you determine which of those are middle names and which have multi-word last names? If you’re dealing with this situation, start shaking your fists harder.