我试图仅显示特定列的最大值。在这种情况下,某个日期之前的最高最大提升量。
这是在mysql数据库上。
SELECT * FROM (select dateofmax, athleteid, maxlift, exerciseid, exercisename, teamid from getmaxesbyteam3 t1 where dateofmax < '2019-9-06' and teamid = 26 and exerciseid = 32 group by athleteid order by maxlift desc) as t2
我正在尝试过滤出teamid和运动ID的所有运动者记录,并只保留包含该运动者最大值的行,而不管日期如何,但要在上述查询中的何处日期之前。