By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 5 Duplicates: 0 Warnings: 0
customer_id | date1 | date2 | diff |
---|---|---|---|
37 | 2020-03-23 | 2020-03-23 | 1 |
37 | 2020-04-24 | 2020-12-31 | 252 |
Records: 5 Duplicates: 0 Warnings: 0
customer_id | date1 | date2 | diff |
---|---|---|---|
37 | 2020-03-23 | 2020-03-23 | 1 |
37 | 2020-04-24 | 2020-12-31 | 252 |