Commit db7e9c2d authored by didonet's avatar didonet
Browse files

Shows students with 2 failures, but only the ones that are still active

in the program.
parent 373b8250
......@@ -55,7 +55,7 @@ public class Configuration {
public static Object findIrregularRegistration(){
return entityManager().createNativeQuery("select * from (select distinct r.id as identidade from registration r, transcript t1, transcript t2, " +
"person p where t1.id <> t2.id and t1.student=r.id and t2.student=r.id and t1.situation='Reprovado' and t2.situation='Reprovado' and" +
" NOT reg_status = 'Desligada') as temp, registration r where temp.identidade = r.id", Registration.class).getResultList();
" NOT reg_status = 'Desligada') as temp, registration r where temp.identidade = r.id and r.reg_status = 'Ativa'", Registration.class).getResultList();
}
//- mostrar data de defesa maior que x meses
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment