Possible Duplicate:
Splitting one column into two columns in SQL Server CE
I am doing a project with VS2010 using C#.
I have a local database (.sdf file). Here is the example content of my database:
Column1
Frodo Baggins
Samwise Gamgee
Peregrin Took
Meriadoc Brandybuck
.
.
.
What I am trying to do is split names and surnames into two different columns, like this:
Names
Surnames
Frodo Baggins
Samwise Gamgee
Peregrin Took
Meriadoc Brandybuck
. .
. .
. .
Since I’m using SQL Server CE 3.5 Edition, LEFT, MID functions didn’t work for me. So, how would I do that?
try this:
OUTPUT: