salut
svp
aidez moi a resoudre ce pb:

DECLARE

SOMME FLOAT;
CURSOR cellList IS
SELECT distinct(ci)
FROM data
;

CURSOR traffic (celid varchar2:='',dat1 varchar2:='',dat2 varchar2:='') IS
SELECT sum (Traffic) from (select Traffic
from data where ci='celid' and to_date(dat) between to_date('dat1')
and to_date('dat2') order by Traffic desc)where rownum<4;


BEGIN

FOR cels IN cellList LOOP
DBMS_OUTPUT.PUT_LINE(cels.CI);
open traffic(cels.CI,'01/08/2006','07/08/2006');
fetch traffic into SOMME;



if traffic%notfound then
SOMME := 0;
end if;

close traffic;

DBMS_OUTPUT.PUT_LINE(somme);


END LOOP;


End ;
/
10002
DECLARE
*
ERREUR à la ligne 1 :
ORA-01858: caractère non numérique rencontré à la place d'un numérique
ORA-06512: à ligne 10
ORA-06512: à ligne 19

le probleme est dans le curseur traffic alors que lorsque j'execute la requete seule elle marche très bien :
voici la requete que je executé:

SELECT sum (Traffic) from (select Traffic
from data where ci='10001' and to_date(dat) between to_date('01/08/2006')
and to_date('08/08/2006') order by Traffic desc)where rownum<4;
svp aidez moi