Num Name 1 6913413 - ABCD 2 5453 - CDE 3 12343412341324 - THEWQ
Num Name 1 6913413 2 5453 3 12343412341324
SELECT SUBSTRING(Name, 1, CHARINDEX( '-', Name) - 1)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)