I have a table which has a column with a long string, i'm tasked with parsing an ID from the string, i've gotten to the point where I can extract everything after a delimiter string, but my query is still catching everything after the delimiter string, which I don't need.
There are records where have multiple ID's on the same line that I need to separate and capture as well.
I've included the SQL fiddle:
For some reason on the live data, when I use the query I have provided, it doesn't always capture the account number.
Here is an updated SQL Fiddle to show the new problems I'm running into. Updated FIDDLE