Slt, j'arrive vraiment pas à comprendre ce qui m'arrive depuis hier. voici ma requete, elle s'execute correctement sur sql plus mais refuse de compilé dans forms (10g)

Aider moi.

declare
cursor cur_Cont is select ct_ncc, ct_nom, ct_loc, ct_bp, ct_tel from Employe where (select nvl(sum(dp_mtdp),0)
from depot d1
where d1.dp_mois = :stat_depot.txt_val_mois
and d1.dp_ncc = Employe.ct_ncc
and d1.dp_an = :critere.exo_inf
and d1.dp_typimp = :critere.rg_natimp) <
(select nvl(sum(dp_mtdp),0)
from depot d2
where d2.dp_mois = :stat_depot.txt_val_mois
and d2.dp_ncc = Employe.ct_ncc
and d2.dp_an = :critere.exo_sup
and d2.dp_typimp = :critere.rg_natimp)
and ct_cdecdi = :critere.cdecdi
order by ct_ncc asc ;

......

Voici l'erreur de compilation

Erreur 103 à la ligne 87 colonne 17
Symbole "SELECT" rencontré à la place d'un des symboles suivants ( + - ...