Buonasera a tutti, ho un piccolo problema. da una tabella devo estrarre 7 valori più grandi in base al giocatore e poi sommarli.

riesco a farmi estrarre solo il valore più grande facendo così:
codice:
SQL = "select Punteggi.CodiceGiocatore from Punteggi "
SQL = SQL & " GROUP BY codicegiocatore "
SQL = SQL & " ORDER BY codicegiocatore "

Set Sogg = Server.CreateObject("ADODB.Recordset")
Sogg.open SQL,Conn,3,1
if not Sogg.EOF then
while not Sogg.EOF

SQL = " select Max(punteggio) AS ris FROM punteggi "
SQL = SQL & "WHERE CodiceGiocatore = '" &  Sogg("CodiceGiocatore") & "' "

Set ElencoGiri = Server.CreateObject("ADODB.Recordset")
ElencoGiri.open SQL,Conn,3,1

If not elencogiri.EOF then
idiscriminante1 = elencogiri("ris")
End if
Response.write "<table>"
Response.Write "<tr><td>" & sogg("codicegiocatore") & "</td>"
Response.write "<td class=intesta> " & idiscriminante1 & "</td></tr>"
Response.write "</table>"

Sogg.MoveNext
wend			
end if
innanzitutto come faccio a farmi estrarre i 7 migliori risultati in base al giocatore?

Grazie