Here is an example you can use. You can copy this to an SSMS window and run it. In your actual query, use just the select statement and replace the x with your actual column nameCREATE TABLE #tmp(x VARCHAR(256));INSERT INTO #tmp VALUES ('1.2-KPIA1-App-00001'),('2.1.1-KPIA2-APP-00008'),('2.4-KPIC10-App-00010');SELECT LEFT(x,CHARINDEX('-',x+'-')-1), LEFT( STUFF(x,1,CHARINDEX('-',x+'-'),''), CHARINDEX('-',STUFF(x,1,CHARINDEX('-',x+'-'),'')+'-')-1)FROM #tmp; DROP TABLE #tmp;