I have a table like this
Value String ------------------- 1 Cleo, Smith
I want to separate the comma delimited string into two colu
SELECT id, Substring(NAME, 0, Charindex(',', NAME)) AS firstname, Substring(NAME, Charindex(',', NAME), Len(NAME) + 1) AS lastname FROM spilt