I have a MYSQL table like this:
id | userid | score | datestamp | ----------------------------------------------------- 1 | 1 | 5
SELECT * FROM table1 LEFT JOIN (SELECT * FROM table1 ORDER BY score LIMIT 3) as lr on DATE(lr.datestamp) = DATE(table1.datastamp) GROUP BY datestamp