I am trying to delete some records from my database, I have succeeded and it works when testing in "DB Browser for SQLite" software but when I try to copy it to my Android Studio project I get this error in my DAO:
'(',')', '.', BETWEEN or IN expected, got ','
This is my code:
@Query("DELETE FROM AsistenciaEstatus\n" +
"WHERE (id_persona_ae, id_registro_asistencia_ae) IN(\n" +
"SELECT id_persona_ae, id_registro_asistencia_ae FROM AsistenciaEstatus\n" +
"INNER JOIN RegistroAsistencia ON AsistenciaEstatus.id_registro_asistencia_ae=RegistroAsistencia._id\n" +
"WHERE AsistenciaEstatus.id_persona_ae=:idPersona\n" +
"AND RegistroAsistencia.id_grupo_ra=:idGrupo)")
void borrarTodosLosEstatusDePersonaEnXGrupo(long idPersona, long idGrupo);
The error appears in the comma of the second line
WHERE (id_persona_ae, id_registro_asistencia_ae)
I don't understand what could be the problem and how to solve it