This is close but need a bit of help.
ABC - ALL BINARY CHARACTERS A32132132 AA - FILE ROOM NUMBER 1 LL A 1022 - ROW AA SHELF 1022 - [HIGHLIGHT]AA1022[/HIGHLIGHT] ABCBCA
Consolidated: SRC32132132
The problem with this is that is is also finding the SRC32132132 as a match. The only field that it should find is the highlighted 6 digit field.
Thanks
John Fuhrman
Code:
[Select
substring(String1,PATINDEX('%[a-zA-z][a-zA-z][0-9][0-9][0-9][0-9]%',String1),6)
as FileLocation
from [AFiles]
ABC - ALL BINARY CHARACTERS A32132132 AA - FILE ROOM NUMBER 1 LL A 1022 - ROW AA SHELF 1022 - [HIGHLIGHT]AA1022[/HIGHLIGHT] ABCBCA
Consolidated: SRC32132132
The problem with this is that is is also finding the SRC32132132 as a match. The only field that it should find is the highlighted 6 digit field.
Thanks
John Fuhrman