SELECT a.*, a.member, a.r_time
FROM recordsorts AS a
WHERE (Select Count(*) from recordsorts where AgeDis=a.AgeDis and r_time >= a.r_time) Between 1 And 5
ORDER BY a.AgeDis, a.r_time;
ok i made a query to concatenates the three fields age group, sex and discipline in that order to produce the...