By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | csv |
---|---|
1 | a,b,c,d,e,f |
2 | a,c,e,g,i |
3 | b,c,d,e,f |
id | tag |
---|---|
1 | a |
2 | b |
3 | e |
4 | i |
5 | f |
6 | c |
7 | d |
8 | g |
p_id | t_id |
---|---|
1 | 1 |
1 | 2 |
1 | 3 |
1 | 5 |
1 | 6 |
1 | 7 |
2 | 1 |
2 | 3 |
2 | 4 |
2 | 6 |
2 | 8 |
3 | 2 |
3 | 3 |
3 | 5 |
3 | 6 |
3 | 7 |