Please help...
I have a column that contains a list of numeric values. Is there any way so that I can add all those values up and display the total in a TextView, and how would I do that?
Thanks!
nmc wrote:Do a rawQuery() using:
select sum(myColumn) from myTable
nmc wrote:Well, you have to fetch the result (its not in your code), but the query will do the trick, yes.
...are you sure you have named your table "Table"?
You shouldnt do that since its a reserved token
the table name is actually dbTable. i figured that i needed to do something else because when calling getTotatl(); catlog shows that no column name was found..
again im not quite sure on how to fetch the results
Return to Other Coding-Problems
Users browsing this forum: Majestic-12 [Bot] and 8 guests