I have a column called names that has inputs like the following:
`name`
Aaron, James
Aberer, Leo
A.J.
A., Narayana Rao
Abbot Jr., Greg
I want to change the formatting such that the first name will come first, this is how it needs to be:
`name`
James Aaron
Leo Aberer
A.J.
Narayana Rao A.
Greg Abbot Jr.
How would I do this directly in mysql?
You can use this solution:
SQLFiddle Demo