By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
5 rows affected
id | orderid | subid |
---|---|---|
1 | 1 | 0 |
2 | 1 | 0 |
3 | 2 | 0 |
4 | 2 | 0 |
4 | 2 | 3 |
4 rows affected
id | orderid | subid |
---|---|---|
1 | 1 | 1 |
2 | 1 | 2 |
3 | 2 | 4 |
4 | 2 | 5 |
4 | 2 | 3 |