Im still new on this and it's my first time using these multiple tables query. Why am I having such an error? Here is my Code:
String selectQuery =
" select *" +
" from tableassign left outer join\n" +
" tableacc\n" +
" on tableassign.signeeid = tableacc.userid left outer join\n" +
" tableinfo\n" +
" on tableassign.signeeid = tableinfo.userid left outer join\n" +
" WHERE tableassign.signeedepid =?";
Cursor data = db.rawQuery(selectQuery , new String[]{ signeedep });
Error:
android.database.sqlite.SQLiteException: near "WHERE": syntax error (code 1):
, while compiling: select * from tableassign left outer join tableacc on
tableassign.signeeid = tableacc.userid left outer join tableinfo on
tableassign.signeeid = tableinfo.userid left outer join WHERE
tableassign.signeedepid =?