Salve a tutto gli iscritti del forum, alle solite sono ad affrontare un problema che non so risolvere, mi spiego:
ho 5 giocatori che possono assumere 3 possibili risultati ognuno, <; >; = nei confronti degli altri 4...
1) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 > giocatore4 and giocatore1 > giocatore5
e fare il calcolo:
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
2) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 > giocatore4 and giocatore1 < giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
3) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 > giocatore4 and giocatore1 = giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
4) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 < giocatore4 and giocatore1 > giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
5) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 = giocatore4 and giocatore1 > giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
e così via per tutte le varie possibilità esistenti...
qualcuno sa ottimizzare la query?
Grazie
Max61
ho 5 giocatori che possono assumere 3 possibili risultati ognuno, <; >; = nei confronti degli altri 4...
1) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 > giocatore4 and giocatore1 > giocatore5
e fare il calcolo:
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
2) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 > giocatore4 and giocatore1 < giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
3) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 > giocatore4 and giocatore1 = giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
4) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 < giocatore4 and giocatore1 > giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
5) giocatore1 > giocatore2 and giocatore1 > giocatore3 and giocatore1 = giocatore4 and giocatore1 > giocatore5
giocatore1 - giocatore2
giocatore1 - giocatore3
giocatore1 - giocatore4
giocatore1 - giocatore5
e così via per tutte le varie possibilità esistenti...
qualcuno sa ottimizzare la query?
Grazie
Max61
Ultima modifica: