Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/06/2004, 16:17
Avatar de meru-kun
meru-kun
 
Fecha de Ingreso: noviembre-2002
Ubicación: Madrid
Mensajes: 854
Antigüedad: 22 años, 5 meses
Puntos: 0
Pues puedes sumar todas sus notas así:
strSQL = "SELECT NOTAS FROM TABLA WHERE USUARIO="&nUser
set mr = miconex.execute(strSQL)
Do while not mr.eof or mr.bof
intNota = intNota + mr("NOTAS")
mr.movenext
Loop
mr.close

Y luego, haces:
strSQL = "SELECT COUNT("NOTAS") AS Total FROM TABLA WHERE USUARIO="&nUser
set mr = miconex.execute(strSQL)
intTotal = mr("TOTAL")
mr.close

Y luego, simplemente:
nMedia = intNota / intTotal

Espero que te sirva :P
__________________
Tu portal de manga y anime.