By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | product_id | storage_id |
---|---|---|
1 | 1 | 15 |
2 | 2 | 17 |
3 | 3 | 18 |
5 | 5 | 15 |
4 | 4 | 17 |
7 | 7 | 18 |
6 | 6 | 17 |
id | product_id | storage_id | seqnum |
---|---|---|---|
1 | 1 | 15 | 1 |
2 | 2 | 17 | 1 |
3 | 3 | 18 | 1 |
4 | 4 | 17 | 2 |
5 | 5 | 15 | 2 |
7 | 7 | 18 | 2 |
6 | 6 | 17 | 3 |