I need help with summing all the values in one of the columns(amount) in my database. i can a get a particular value. .but i need sum of a specific column, somebody tell me
Do so:
Cursor cur = db.rawQuery("SELECT SUM(myColumn) FROM myTable", null); if(cur.moveToFirst()) { return cur.getInt(0); }