playerNo Score 1 100 1 110 1 120 1 130 1 140 1 150 2 100 2 200 2 300 3 100 3 120 3 104 3 160 4 110 4 106 4 140 5 110 5 120 5 140
playerNo Score 1 150 2 300 3 160 4 140 5 140
select playerNo, MAX(Score) from tablename group by playerNo
SELECT distinct playerNo,(SELECT Max(score) AS score FROM table1 as a WHERE a.playerNo = b.playerNo) FROM table1 AS B
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)