exclude Abgewiesene ohne Status bestätigt beim INteressenten, damit noch nicht

abgeschickte Bewerbungen wieder in Liste sind
This commit is contained in:
Gerald Raab
2018-06-12 11:47:48 +02:00
parent eaa454b063
commit 61dcf61e9e
@@ -63,6 +63,7 @@
FROM public.tbl_studiensemester
WHERE ende >= NOW()
)
AND not exists (select 1 from tbl_prestudentstatus psss where psss.prestudent_id = pss.prestudent_id and psss.status_kurzbz = \'Abgewiesener\' and psss.studiensemester_kurzbz = \'WS2018\')
ORDER BY pss.datum DESC, pss.insertamum DESC, pss.ext_id DESC
LIMIT 1
) AS "SendDate",