I am trying to concatenate four fields into one. I have the following data:
Last Name
First Name
Middle Initial (can be null)
Degree (M.D., D.O., etc.)
I need my resultant field data to look like the following:
"Simpson, Bart A., M.D."
I'm having a problem writing SQL that is sensitive to placing the period after the middle initial only if there is a middle initial present. If there isn't a middle initial, I just want the comma: "Simpson, Bart, M.D.".
This is probably a simple code. We're all learning!
Thanks in advance.
Last Name
First Name
Middle Initial (can be null)
Degree (M.D., D.O., etc.)
I need my resultant field data to look like the following:
"Simpson, Bart A., M.D."
I'm having a problem writing SQL that is sensitive to placing the period after the middle initial only if there is a middle initial present. If there isn't a middle initial, I just want the comma: "Simpson, Bart, M.D.".
This is probably a simple code. We're all learning!
Thanks in advance.