I have this table like this:
AdID | Hits | CreatedOn
1, 20, 2013-08-28 18:18:42
2, 12, 2013-08-28 13:34:42
3, 12, 2013-08-27 11:34:42
4, 14, 2013-08-27 02:34:42
5, 12, 2013-08-26 11:34:42
6, 12, 2013-08-26 02:34:42
I want to the result will be like this:
1, 20, 2013-08-28
4, 14, 2013-08-27
5, 12, 2013-08-26
Basically it will select the most hist of each date and if it's the HITS same it will pick top of AdID
How do I do this in mySQL?