first commit
This commit is contained in:
36
Archiv/++ Printqueue zurücksetzen.txt
Normal file
36
Archiv/++ Printqueue zurücksetzen.txt
Normal file
@ -0,0 +1,36 @@
|
||||
Druckdaten zur<75>cksetzen
|
||||
|
||||
Standortzuweisung (Wird <20>ber Modul "Bescheinigung SO-Zuw." gesammelt gedruckt:
|
||||
|
||||
delete
|
||||
from stan_printqueue_antrag
|
||||
where uid in (select uid from stud where hs='K' and Jahrgang='16')
|
||||
and zuweisung = 'SOZ';
|
||||
|
||||
|
||||
Antr<EFBFBD>ge l<>schen, nach dem Zuweisen ensteht ein Eintrag in der printqueue:
|
||||
update stan_printqueue_antrag
|
||||
set datum = '0000-00-00 00:00:00'
|
||||
,druckstatus='N'
|
||||
where saaid in (select saaid
|
||||
from stan_antrag
|
||||
where uid in (select uid from stud where hs='K' and Jahrgang='16')
|
||||
);
|
||||
|
||||
|
||||
SELECT druckstatus, count(*) Anz
|
||||
FROM stan_printqueue_antrag
|
||||
where saaid in (select saaid
|
||||
from stan_antrag
|
||||
where uid in (select uid from stud where hs='K' and Jahrgang='16')
|
||||
)
|
||||
group by druckstatus;
|
||||
|
||||
|
||||
SELECT *
|
||||
FROM stan_printqueue_antrag
|
||||
where saaid in (select saaid
|
||||
from stan_antrag
|
||||
where uid in (select uid from stud where hs='K' and Jahrgang='16')
|
||||
);
|
||||
|
Reference in New Issue
Block a user