By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | nbr | dt | status | Cont1Sta1 | DateLagInDays | Recurrence |
---|---|---|---|---|---|---|
1 | 2 | 2023-10-01 | 1 | 1 | 0 | 1 |
1 | 2 | 2023-11-02 | 0 | 0 | 0 | 0 |
1 | 2 | 2023-12-13 | 0 | 0 | 0 | 0 |
1 | 3 | 2023-10-01 | 0 | 1 | 73 | 0 |
1 | 3 | 2023-11-02 | 0 | 0 | 0 | 0 |
1 | 3 | 2023-12-13 | 1 | 0 | 0 | 0 |
1 | 9 | 2023-11-01 | 0 | 1 | 30 | 1 |
1 | 9 | 2023-12-01 | 1 | 0 | 0 | 0 |
1 | 9 | 2024-01-01 | 0 | 0 | 0 | 0 |
Warning: Null value is eliminated by an aggregate or other SET operation.