So I have a table which contains a column where each entry is a comma separated list. See below:
| ID | class | dt |
|---|---|---|
| 08 | A,B,C,D | 20220801 |
| 21 | A,B,C,D,E,F,G | 20220801 |
| 92 | A,B,C | 20220801 |
| 98 | A,B,C,D,E,F,G,H | 20220801 |
In the actual table, some of the class entries contain up to 232 different elements.
I'd like to return only specific values in a new column with the same comma separated format. So as an example from the above, I'd like ID 21 to return a column with 'C,D,E'.
Any help is appreciated.
