I have a varchar field which contains locations like '45019A' etc. These are our bin numbers
Some of these contain multiple locations like
'40011A,45011A'.
I want to search rows which contain a range of these using
between '45277A' and '45288Z'
This query works fine when data starts with these locations but it doesn't return rows where this range of locations in the 2nd location.
What query would i write to extract this data from the range even if the location is not the 1st part of the data meaning if i search on range '45001A to 46001Z' it should return both '45025A' as well as '50001A,45022A'
Thanks in advance
If anything can go wrong, it WILL.
Some of these contain multiple locations like
'40011A,45011A'.
I want to search rows which contain a range of these using
between '45277A' and '45288Z'
This query works fine when data starts with these locations but it doesn't return rows where this range of locations in the 2nd location.
What query would i write to extract this data from the range even if the location is not the 1st part of the data meaning if i search on range '45001A to 46001Z' it should return both '45025A' as well as '50001A,45022A'
Thanks in advance
If anything can go wrong, it WILL.