tags:

views:

359

answers:

0

I was wondering how I could query my database of 1400 items and get only the DISTINCT types and row ids. Below is the actual sql that I want to run by my program crashes if I dont return ids.

 return mDb.rawQuery("SELECT DISTINCT Type from the_foods",null);

Any ideas?