By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 2 Duplicates: 0 Warnings: 0
Records: 4 Duplicates: 0 Warnings: 0
Records: 3 Duplicates: 0 Warnings: 0
productId | quantity | orderQuantity |
---|---|---|
20 | 1 | 1 |
22 | 0 | 2 |
22 | 0 | 1 |
24 | 1 | 1 |
productId | newQuantity |
---|---|
20 | 2 |
22 | 3 |
24 | 2 |
Rows matched: 3 Changed: 3 Warnings: 0
productId | quantity |
---|---|
20 | 2 |
22 | 3 |
24 | 2 |