I am trying to write a query to get the following entries.
I have a table with entries like
c1 c2 c3 c4 c5 c6 1 John 2.3.2010 12:09:54 4 7 99 2 mike 2.3.2010 13:09:59 8 6 88 3 ahmad 2.3.2010 14:09:59 1 9 19 4 Jim 23.3.2010 16:35:14 4 5 99 5 run 23.3.2010 12:09:54 3 8 12
I want to get only records: -
3 ahmad 2.3.2010 14:09:59 1 9 19 4 Jim 23.3.2010 16:35:14 4 5 99
I mean records sorted by column c3, and those that are last for this day. here I have 1, 2, 3 entries that are at different times of the day. there I need records sorted by desc date, and then only the first record. similarly for 4 and 5. could you please help me in writing the request.
source share