assuming we have a table like below
name | userid | score | datestamp |
-----------------------------------------------------
john | 1 | 44 | 2011-06-10 14:25:55
mary | 2 | 59 | 2011-06-10 09:25:51
john | 1 | 38 | 2011-06-10 21:25:15
elvis | 3 | 19 | 2011-06-10 07:25:18
...
marco | 4 | 100 | 2011-03-10 07:25:18
i want to display the high-score of each user in each single day.
so for eaxmple if the player john have played ten rounds in the 2001-06-10 i want to display the the best score of that day, and so on for the others players.
thank you very much for the time.
But also notice that your table is not even in the first normal form because it lacks an unique key. Also after fixing that, name of players will be repeated, and it will have to be extracted in a separate table for the second normal form.
A normalised design will have two tables: