Alo einen rang zu ermitteln im grunde kann ich, einfach z.b. die Punkte Zahl on user x auslesen und gucken die anzahl der User die mehr haben.
Aber wie macht man das, wenn die anzahl per Count bereits berechnet wird?
also insgesamte rangfolge:
select count(w) as anzahl from tabellea group by w order by anzahl DESC limit 10
Anzahl bei users x
select count(w) as anzahl from tabellea where user=x group by w
Und wie bekommt man nun die position von dem user? Habe schon einiges versucht, kalppte aber nciht.
Aber wie macht man das, wenn die anzahl per Count bereits berechnet wird?
also insgesamte rangfolge:
select count(w) as anzahl from tabellea group by w order by anzahl DESC limit 10
Anzahl bei users x
select count(w) as anzahl from tabellea where user=x group by w
Und wie bekommt man nun die position von dem user? Habe schon einiges versucht, kalppte aber nciht.