I have a column with characters like:
12345 AB 12345
12345 CD 12345
I just want just the "AB" and "CD" returned.
I tried this and can get only the first part trimmed off:
SELECT column,substring(docket,charindex(' ',column)+1 ,
len(column)) as [column]
output:
AB 12345
CD 12345