思路

先降序,把大的时间排上去, 再分组,取出来的自然是最大的第一条



根据 考试id exam_id 和学生id  查出来的集合  (里边有smallitem_id 是重复的 )

重复的 我取 create_time  最大的那个记录

select * from (select  distinct cretate_time  from t_exam_change_score_log order by cretate_time desc) f group by smalitem_id






本文转载:CSDN博客