11 lines
541 B
SQL
11 lines
541 B
SQL
/* Numero totale di richieste Donor Virtuale in ritardo di espletamento */
|
|
SELECT COUNT (*), gr.codice_operatore_donating AS operatore_donor,
|
|
gr.operatore_interno_recipient AS operatore_recipient
|
|
FROM mnp_gest_rich_donor_virt gr, mnp_operatore_interno oi
|
|
WHERE gr.operatore_interno_recipient(+) = oi.nome_operatore
|
|
AND oi.tipologia_operatore IN ('PROVIDER', 'ESP')
|
|
AND gr.stato IN (6, 8, 10)
|
|
AND gr.data_cut_over_calc < TRUNC (SYSDATE)
|
|
GROUP BY gr.operatore_interno_recipient, gr.codice_operatore_donating;
|
|
|