By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
product_id | out_date | out_quantity | in_date | in_quantity |
---|---|---|---|---|
1 | 2022-03-01 | 10 | 2022-03-15 | 30 |
1 | 2022-03-02 | 20 | 2022-03-15 | 30 |
3 rows affected
product_id | out_date | out_quantity | in_date | in_quantity |
---|---|---|---|---|
1 | 2022-03-01 | 10 | null | null |
1 | 2022-03-02 | 20 | null | null |
1 | null | null | 2022-03-15 | 30 |