Selecting the best score per player
问题 I have a table called Scores which contains columns: id , player_id , value1 , value2 , value3 and date . The table has next following content: +------+-----------+--------+--------+--------+------------+ | id | player_id | value1 | value2 | value3 | date | +------+-----------+--------+--------+--------+------------+ | 1 | 1 | 10 | 0 | 0 | 2012-08-02 | +------+-----------+--------+--------+--------+------------+ | 2 | 2 | 15 | 1 | 0 | 2012-08-03 | +------+-----------+--------+--------+-------