jonnyboy2
12-18-2008, 06:52 PM
I am attempting to write a ranking program that takes results in the form
Name | Club | Compulsory Routine | Difficulty | Total | Voluntary Routine | Difficulty | Total | Final Routine | Difficulty | Total | Overall Total
NameA ClubA | 8.00 8.00 8.50 8.30 8.60 | 3.10 | 27.90 | 7.50 7.70 7.40 7.60 7.50 | 12.30 | 34.90 | 7.50 7.30 7.20 7.50 7.20 | 13.60 | 35.60 | 98.40
I know its hard to read that from what ive written but it doesnt really matter for now.
The database includes many of these records and competitors have many records to their name. What i want to do is query the table to leave only the top 5 'Overall Total' fields from each person. Ive tried a few ways but cannot get anywhere near what i want. If 5 scores for one Name dont exist i wish to leave that person out, however that can be thought about later.
Once that is done i want to enter an average for each person as a new entry into a different table.
any input into what i should be thinking about to do this?
Thanks
Jonny
Name | Club | Compulsory Routine | Difficulty | Total | Voluntary Routine | Difficulty | Total | Final Routine | Difficulty | Total | Overall Total
NameA ClubA | 8.00 8.00 8.50 8.30 8.60 | 3.10 | 27.90 | 7.50 7.70 7.40 7.60 7.50 | 12.30 | 34.90 | 7.50 7.30 7.20 7.50 7.20 | 13.60 | 35.60 | 98.40
I know its hard to read that from what ive written but it doesnt really matter for now.
The database includes many of these records and competitors have many records to their name. What i want to do is query the table to leave only the top 5 'Overall Total' fields from each person. Ive tried a few ways but cannot get anywhere near what i want. If 5 scores for one Name dont exist i wish to leave that person out, however that can be thought about later.
Once that is done i want to enter an average for each person as a new entry into a different table.
any input into what i should be thinking about to do this?
Thanks
Jonny