By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Id | UseMultipleWarehouses | StockQuantity |
---|---|---|
1 | 0 | 10 |
2 | 0 | 12 |
3 | 1 | 14 |
4 | 1 | 15 |
Id | StockQuantity | ProductId | ReservedQuantity |
---|---|---|---|
1 | 100 | 1 | 10 |
2 | 200 | 2 | 20 |
3 | 300 | 3 | 30 |
4 | 400 | 4 | 390 |
Id | UseMultipleWarehouses | StockQuantity |
---|---|---|
1 | 0 | 10 |
4 | 1 | 15 |