By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
9 rows affected
| OrderedDate | SelectedLeadTime | ExpectDate | ReceivedDate |
|---|---|---|---|
| 2022-08-11 | 10 | 2022-09-23 | 2022-09-23 |
Warning: Null value is eliminated by an aggregate or other SET operation.
| OrderID | FloorStock | LeadTime | MaterialAvailable | OrderedDate | ExpectedDate | ReceivedDate | dr |
|---|---|---|---|---|---|---|---|
| 880 | 0 | 10 | 0 | 2022-08-01 | 2022-09-23 | 2022-09-23 | 1 |
| 880 | 0 | 5 | 0 | 2022-08-06 | 2022-09-05 | null | 1 |
| 880 | 0 | 1 | 0 | 2022-08-10 | null | null | 1 |