How do I select the most recent last entry for today + last 6 days data for end of the day once per day only
There are many rows for the same day with different timings.
It should select 7 rows of data only.
+----+-----------------------+
| C1 | C2 |
+----+-----------------------+
| 1 | 2019-09-19 00:01:02 |
| 2 | 2019-09-19 00:05:02 |
| 3 | 2019-09-19 23:59:02 |
| 4 | 2019-09-20 00:15:02 |
| 5 | 2019-09-21 00:15:02 |
| 6 | 2019-09-22 00:15:02 |
| 7 | 2019-09-23 00:15:02 |
| 8 | 2019-09-24 00:15:02 |
| 9 | 2019-09-25 00:10:02 |
| 10 | 2019-09-25 00:12:02 |
+----+-----------------------+