By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
4 rows affected
| report | reportname | startdate | consolidated | imputed_startdate | seqnum |
|---|---|---|---|---|---|
| 1 | ABC | 2019-01-01 | 1 | 2019-01-01 | 1 |
| 2 | DEF | null | 3,4 | 2019-04-01 | 1 |
| 3 | GHI | 2019-04-01 | 3 | 2019-04-01 | 1 |
| 4 | JKF | 2019-05-01 | 4 | 2019-05-01 | 1 |
Warning: Null value is eliminated by an aggregate or other SET operation.