By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
date_of_month | total_energy_used | last_order_date | last_order_sum |
---|---|---|---|
2020-01-25 | 77 | 2020-01-25 09:13:00 | 25.13 |
2020-01-26 | 75 | 2020-01-26 10:14:00 | 14.00 |
2020-01-27 | 0 | 2020-01-27 11:13:00 | 35.00 |