I am working within Snowflake and some of the IDs in a given table and column are delimited by semicolons. Despite this delimiter the tables should still be joined. Any attempt to join the table is usually met with an error of some sort.
Below I have an example of what I have attempted to do.
table_A table_B
+----------+----------+ +----------+----------+
| some_id | F_Name | | some_id | L_Name |
+----------+----------+ +----------+----------+
| 12345 | John | |12345;4321| Doe |
+----------+----------+ +----------+----------+
Attempted SQL Statement
select table_A.some_id, table_A.F_name, table_B.L_Name
from table_A
left join table_B on table_A.some_id like '%'||table_B.some_id||'%'
The source for this particular problem has shown up here but it doesn't seem to work. It may just not be possible to do joins in this particular way. https://community.snowflake.com/s/question/0D50Z00008zPLLx/join-with-partial-string-match
Any help is most appreciated.