Thanks to Rabbit, I am very, very, close to a solution. I'll post the SQL and an Attachment. The problem with Ranking occurs when Times are exactly the same, as indicated by the Rankings for 8:05:00 PM in the Attached Database. If no 2 Times are exactly the same, the SQL works perfectly.
P.S. - Surprised I got this far, going to bed and will try to figure out the last remaining detail tomorrow, unless one of you guys beats me to the punch.
Code:
SELECT T1.firstname, T1.surname, T1.Time, ((SELECT Count(*) FROM resultsdata WHERE resultsdata.Time < T1.Time)+1) AS OverallPosition, T1.gender, ((SELECT Count(*) FROM resultsdata WHERE resultsdata.Time< T1.Time AND resultsdata.gender = T1.gender)+1) AS GenderPosition, Category, ((SELECT Count(*) FROM resultsdata WHERE resultsdata.Time< T1.Time AND resultsdata.Category = T1.Category)+1) AS CategoryPosition FROM resultsdata AS T1;
Comment