SELECT COALESCE(From_Place,SUBSTRING(Area,1,CHARINDEX(' TO ', Area, 1))) 'From_Place', COALESCE(To_Place,SUBSTRING(Area,CHARINDEX(' TO ', Area, 1)+4,LEN(Area))) 'To_Place', NULL Area FROM SOURCE
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)