Ver originalselect * from miembros t0left join asistencias t1 on t1.miembro_id = t0.idwhere t1.id is null select * from miembros t0 where not exist(select id from asistencias t1 where t1.miembro_id = t0.id)