I am looking to perform the following query (in pseudo-code) on Android:
SELECT C.ID, C.NAME, CASE ISNULL(G.GROUPID,0) = 0 THEN 0 ELSE 1 END INGROUP FROM CO
You can't do that because ContentResolver has only one query method:
query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder)
there's no parameter for tables or FROM clauses.