I'm having a problem querying a SQLite database in Android. The way I do it now is only ORDER BY, but it doesn't work, only the sorting function.
Cursor cursor = DB.rawQuery("SELECT * FROM Userdetails ORDER BY ID DESC", null);
How to query all the most similar values in the ID column? In this case 1ABC occurs at most so it should appear twenty-two times.