I am working on a project where I am laying out a list of players for each team in a given league. The list looks like this (The draft order numbers are autoID):
I don't have a problem laying out the lists for each team.What I need is to convert the autoID numbers to 1-10 for each team based on their order. Basically I need the draft order column to look like the Needed column in the table above.
I am using ASP and MS SQL DB and using a loop to layout the teams etc. Any ideas on how to convert these would be greatly apreciated.
I am already converting the weight classes from 1-10 to the appropriate weight classes with a function outside of the loop. But i can't get my head around how to do this with unknown autoid numbers.
I am ordering by Team, weightclass, then the autoID
Thanks!
Code:
The Brawlers
Wgt Name Draft Order Needed
125 Fred 1342 9
133 Dave 1301 2
141 Mike 1304 3
149 Phil 1325 6
157 Steve 1343 10
165 Bob 1312 4
174 Albert 1313 5
184 Robert 1327 7
197 Frank 1340 8
285 Sid 1300 1
I don't have a problem laying out the lists for each team.What I need is to convert the autoID numbers to 1-10 for each team based on their order. Basically I need the draft order column to look like the Needed column in the table above.
I am using ASP and MS SQL DB and using a loop to layout the teams etc. Any ideas on how to convert these would be greatly apreciated.
I am already converting the weight classes from 1-10 to the appropriate weight classes with a function outside of the loop. But i can't get my head around how to do this with unknown autoid numbers.
I am ordering by Team, weightclass, then the autoID
Thanks!