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
You can combine CHARINDEX and SUBSTRING functions. Both of them are supported in CE according to msdn.
Example:
SELECT SUBSTRING(a, 0, CHARINDEX(' ', a)), SUBSTRING(a, CHARINDEX(' ',a) + 1, LEN(a)) FROM (SELECT 'Random Joe' as a) t