I have table like below
| time | ename | cid | userid | day
-------------------------------------------------------
| 1455865003573 | fol | 11228 | 107757 |20160218
| 1455865000083 | unfol | 11228 | 107757 |20160218
| 1455874888381 | unfol | 11229 | 107757 |20160219
| 1455874892944 | fol | 11229 | 107757 |20160219
I want output like below based on last max(time) on each cid,userid,day.
| time | ename | cid | userid | day
-------------------------------------------------------
| 1455865003573 | fol | 11228 | 107757 |20160218
| 1455874892944 | fol | 11229 | 107757 |20160219
Please help me on this.
Thanks In Advance.