Currently using Core Data. I have one table in which I am trying to retrieve information along these lines:
SELECT item, COUNT(*) FROM myTab
It made more sense to just write my own query. I followed this excellent tutorial:
http://dblog.com.au/iphone-development-tutorials/iphone-sdk-tutorial-reading-data-from-a-sqlite-database/