maharg
Technical User
- Mar 21, 2002
- 184
Hi
I'm trying to create a mySQL table which internally calculates true ranking. See below ...
Name Time Rank
mike 20.5 1
fred 20.9 2
dave 21.5 =3
stan 21.5 =3
eddy 21.5 =3
paul 22.3 6
mick 23.7 7
vick 24.6 =8
olly 24.6 =8
dick 25.8 10
I can do this in php by saving a list of variables and comparing each to the next and previous, and adding the = sign, then re-writing to the db, but I'd like to do it in mySQL itself if possible.
See attached for an example of my php ranking method.
Thanks in advance,
graham
I'm trying to create a mySQL table which internally calculates true ranking. See below ...
Name Time Rank
mike 20.5 1
fred 20.9 2
dave 21.5 =3
stan 21.5 =3
eddy 21.5 =3
paul 22.3 6
mick 23.7 7
vick 24.6 =8
olly 24.6 =8
dick 25.8 10
I can do this in php by saving a list of variables and comparing each to the next and previous, and adding the = sign, then re-writing to the db, but I'd like to do it in mySQL itself if possible.
See attached for an example of my php ranking method.
Thanks in advance,
graham