By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
✓
✓
session_id | item_a | item_b |
---|---|---|
1 | t-shirt | hat |
1 | trousers | hat |
1 | trousers | t-shirt |
2 | shoes | belt |
✓
✓
session_id | item_a | item_b |
---|---|---|
1 | t-shirt | hat |
1 | trousers | hat |
1 | trousers | t-shirt |
2 | shoes | belt |