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
Ned Stark
Tyrion Lannister
Daenerys Targaryen
Robert Baratheon
What I am trying to do is split names and surnames into two different columns, like this:
Names
Surnames
Ned Stark
Tyrion Lannister
Daenerys Targaryen
Robert Baratheon
Since I’m using SQL Server CE 3.5 Edition, LEFT, MID functions didn’t work for me. So, how would I do that?
This should work.
EDIT:
Just replace the part after from with you table and the column [Name] with you column.