Hi, I have a sql query like this
String loadFav = "SELECT _id, title, name, favorite FROM table1 where favorite= 1 "
+ "UNION ALL"
+ "SELECT _id, title, name, favorite FROM table2 where favorite= 1"
;
Cursor mCursor = mSQLiteDatabase.rawQuery(loadFav, null);
I got an error when run this query. Is it right structure? Can someone help me?