0

Is there a function like SPLIT_PART in SQL Server 2008 which divides a character string according to the specified separator and returns the nth part of the string?

For e.g

Jerry S/o Tom

|-----------------Name----------------------------- |

| NIZAKAT ALI CHANNA S/O SHAMA NAZ ---|

| MUHAMMAD USAMAN S/o ABDUREHMAN |

Desired Output

| First Name------------------ | Last Name |

| NIZAKAT ALI CHANNA -- | SHAMA NAZ |

| MUHAMMAD USAMAN --- | ABDUREHMAN |

I want to get both Jerry and Tom separately saved in two columns

user1056466
  • 597
  • 1
  • 7
  • 17

0 Answers0