Table:
ID name value time
1 A 3 2018-1-1
1 A 4 2018-4-4
2 B 6 2018-1-2
3 C 7 2018-1-3
3 C 9 2018-4-6
how to group by ID and only take the most recent value of time (time) under the same ID and name:
such as:
ID name value time
1 A 4 2018-4-4
2 B 6 2018-1-2
3 C 9 2018-4-6