In a sqlite DB, I have two fields. A value field, and a timestamp field. I want to get the value for the last timestamp for each day. For example, with records like this:

```
Value  |  Timestamp
1         2017-05-26 14:38:48
2         2017-05-26 15:38:48
3         2017-05-26 16:38:48
4         2017-05-29 14:38:48
5         2017-05-29 15:38:48
6         2017-05-29 16:38:48

```

I'd like to return the two max values per day.

```
Value  |  Timestamp
3         2017-05-26 16:38:48
6         2017-05-29 16:38:48

```