In my SQLite database manager I can query this:
SELECT SUM(odometer) as odometer FROM tripmileagetable where date like '2012-07%';
this query returns me the total sum of the odometer colum from the table named ‘tripmileagetable’ of the month of july 2012, but I want to write this code in android query.
But I can’t figure out how to establish this query in database.query() method, can any one help?
1 Answer