By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
id | number | date |
---|---|---|
7387 | 0101008461 | 07/04/2016 00:00:00 |
77109 | 0101008461 | 25/01/2018 00:00:00 |
61009 | 0105003182 | 08/09/2017 00:00:00 |
50859 | 010501748932 | 23/06/2017 00:00:00 |
50998 | 010501748932 | 26/06/2017 00:00:00 |
9978 | 010501748932 | 06/05/2016 00:00:00 |
id | number | date_current | date_previous | days |
---|---|---|---|---|
7387 | 0101008461 | 07/04/2016 00:00:00 | null | null |
77109 | 0101008461 | 25/01/2018 00:00:00 | 07/04/2016 00:00:00 | 658 |
61009 | 0105003182 | 08/09/2017 00:00:00 | null | null |
50859 | 010501748932 | 23/06/2017 00:00:00 | 06/05/2016 00:00:00 | 413 |
50998 | 010501748932 | 26/06/2017 00:00:00 | 23/06/2017 00:00:00 | 3 |
9978 | 010501748932 | 06/05/2016 00:00:00 | null | null |