My data in one column(col) is as follows: Col
Accounts::Changes
Applications::Zen::Other
Server::Access
I need this data to go to two columns. I want the first string before the delimiter (:) to go into one column (col1) and the last string after the last delimiter to go into another column (col2).
The output should be:
Col1 Col2
Accounts Changes
Applications Zen
Server Access
I am using sql server 2008 R2