By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | date1 | date2 | value |
---|---|---|---|
1 | 01/01/2014 00:00:00 | 01/01/2004 00:00:00 | 100 |
1 | 01/01/2015 00:00:00 | 01/01/2004 00:00:00 | 100 |
1 | 01/01/2017 00:00:00 | 01/01/2016 00:00:00 | 300 |