Here's my issue:
I need to write this in SQL, not VBA and i know that it's probably very simple, but I'm not seeing it right now. I'm not large with the text manipulation...
I need to compare a four digit number from one table to a four digit number in a 2nd table. However, the four digit number in the second table is buried in a long string.
I know that I need to use a Mid() and probably an Instr() function to pull out the four digits, but I can't get the syntax right. This is the setup: slash followed by a word or two, followed by another slash, followed by the four digits that I want, followed by slashes with other information.
/san diego/####/otherstuff/more other stuff/
/new york/####/morestuff/more more stuff/
/chicago/####/gunky/more gunky
I need to write this in SQL, not VBA and i know that it's probably very simple, but I'm not seeing it right now. I'm not large with the text manipulation...
I need to compare a four digit number from one table to a four digit number in a 2nd table. However, the four digit number in the second table is buried in a long string.
I know that I need to use a Mid() and probably an Instr() function to pull out the four digits, but I can't get the syntax right. This is the setup: slash followed by a word or two, followed by another slash, followed by the four digits that I want, followed by slashes with other information.
/san diego/####/otherstuff/more other stuff/
/new york/####/morestuff/more more stuff/
/chicago/####/gunky/more gunky