suppose that I have a table with two columns like this:
| ID | Teams |
|---|---|
| 1 | Netherlands,Ecuador,Qatar,Senegal |
| 2 | England,Iran,United States,Team X |
| 3 | Mexico,Argentina,Poland,Saudi Arabia |
| 4 | France,Denmark,Tunisia,Team Y |
| 5 | Spain,Japan,Germany,Team Z |
| 6 | Croatia,Belgium,Canada,Morocco |
| 7 | Brazil,Cameroon,Switzerland,Serbia |
| 8 | Uruguay,Portugal,Ghana,South Korea |
you see that in second column I have a list of words, seperated by a comma. how can I have a select query that gives a distinct list of words from second column that were seperated by comma like this:
| All |
|---|
| Netherlands |
| Ecuador |
| Qatar |
| .. |