I have a table tblPerson
and column fullname
--------------
fullname
--------------
Garcia, John C.
Herdan, Stephen S.
Ubico, Ed Z.
I want to explode the fullname column in order to get the last, first and middle name and create 3 columns respectively.
I am using MS SQL Server 2008 R2
Output:
------------------------------------------------------------------------
fullname lname fname mname
------------------------------------------------------------------------
Garcia, John C. Garcia, John C.
Herdan, Stephen S. Herdan, Stephen S.
Ubico, Ed Z. Ubico, Ed Z.
Thank You in Advance