I\'m attempting to delete all rows in one table that do not have a corresponding ID in another table. Since apparently SQLite does not support joins in deletes I am trying
I think the only way is to execute your select and dynamically combine your WHERE clause.
you have to use execSQL instead rawQuery because rawQuiery is used for the statement that returns data and execSQL is used for the statement that doesn't return data like DELETE
You shouldn't use a .rawQuery, as you stated, but you can use .execSQL() to accomplish it. I regularly use it for deletions myself.