There is a table in the database:
declare @Results Table ( ID int, TestResult5 int ) insert into @Results VALUES (1, 3), (1, 5), (2, 3), (2, 2), (2, 4) It is necessary to remove records from the table, leaving the best student result. Those. after the SQL query should remain:
15
2 - 4
What should the query look like to solve this problem?

select id, max(колонка с оценкой) from table group by id- Baldоценка, the next column is theПервичный балл. Well, if this and that is the same, then you just need not touch. There will not be many of them and I can delete them manually. - Adam