There are two tables, one table contains the name of the sets, the second key pair = value, and a key matching column for one of the sets. In both tables there is a column containing the value of the activity of the set and the activity of the pair, respectively (is_it_used = 1 (included in the sample) or = 0 (not included in the sample)). Something like this...
We need a query that would connect two tables and display a list of keys, omitting inactive sets and inactive keys. The SQL query looks something like this:
SELECT keys.key, keys.value FROM set, keys WHERE set._id = keys.set_id AND set.is_it_used = 1 AND keys.is_it_used = 1; How to put this question in the application through the method (if this method can be used here at all, of course):
public Cursor query( Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder ); Or maybe it can somehow be done differently? tell me who knows.
The application has a ContractClass which associates URIs with tables.

JOIN, isn't it? You can also of course make arawQuery... And about your question, there is arawQuerymethod that accepts any request as aString- Vladyslav Matviienko,the from statement is similar to the join - Mike operator