I'm new to SQL and couldn't find anything on my issue:
This is a simplification of my issue, but basically I have 2 tables I want to join on some column like 'fruit', but table 1 has some rows where fruit is separated by commas in the row, is there a way to join the tables as if the fruit were in different rows for the second table? (I just arbitrarily filled in count)
TABLE 1
count | fruit |
1 | apple, berry
1 | berry
1 | banana
1 | orange, banana
TABLE 2
count | fruit |
1 | apple
4 | berry
15 | banana
11 | orange