Cursor cursor = db.rawQuery("SELECT id,no,name,lastname FROM mytable WHERE " +
"id = (SELECT MIN(id) and no=0 FROM mytable ); ",null);
I am getting that error at below, Could you please help me ?
What I want is to retrieve the record that has min Id where no=0 in the mytable....
Error:android.database.sqlite.SQLiteException: near "WHERE": syntax error: , while compiling: