Don’t know what is causing this but I try to get the level which has the heighest score-sum of all answers of that level.
Cursor c = myDataBase
.rawQuery(
"select level "
+ "from answers where player ='"
+ player
+ "' group by level order by sum (score) desc",
null);
All answers of a certain level have a score value. It constantly returns level 10 (of 10 levels) while actually another level has the highest score… if I apply an asc order, it works just fine :s
If you are trying to get only level with highest score then try using
havingas below:EDIT:
or