By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 18 Duplicates: 0 Warnings: 0
Client | User | first_date | last_date | consecutive |
---|---|---|---|---|
1 | 1 | 2022-11-29 | 2022-12-06 | 2 |
1 | 2 | 2023-01-10 | 2023-01-24 | 3 |
1 | 3 | null | null | 0 |
Client | User | first_date | last_date | consecutive |
---|---|---|---|---|
1 | 1 | 2022-11-29 | 2022-12-06 | 2 |
1 | 2 | 2023-01-10 | 2023-01-24 | 3 |
1 | 3 | null | null | 0 |