By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
ID | title | categories | category |
---|---|---|---|
1 | Movie A | Comedy, Drama, Romance | Comedy |
2 | Movie B | Animation | Animation |
3 | Movie C | Documentary, Life changing | Documentary |
another_id | ID | title | categories | category |
---|---|---|---|---|
1 | 1 | Movie A | Comedy, Drama, Romance | Comedy |
2 | 2 | Movie B | Animation | Animation |
3 | 3 | Movie C | Documentary, Life changing | Documentary |
ID | title | categories | category |
---|---|---|---|
1 | Movie A | Comedy, Drama, Romance | null |
2 | Movie B | Animation | null |
3 | Movie C | Documentary, Life changing | null |
4 | Movie A | null | Comedy |
5 | Movie A | null | Drama |
6 | Movie A | null | Romance |
7 | Movie B | null | Animation |
8 | Movie C | null | Documentary |
9 | Movie C | null | Life changing |
another_id | ID | title | categories | category |
---|---|---|---|---|
1 | 1 | Movie A | Comedy, Drama, Romance | null |
2 | 2 | Movie B | Animation | null |
3 | 3 | Movie C | Documentary, Life changing | null |
4 | 1 | Movie A | null | Comedy |
5 | 1 | Movie A | null | Drama |
6 | 1 | Movie A | null | Romance |
7 | 2 | Movie B | null | Animation |
8 | 3 | Movie C | null | Documentary |
9 | 3 | Movie C | null | Life changing |