Subject | Re: [ib-support] SP Problem |
---|---|
Author | kokou Fostin |
Post date | 2003-03-08T18:12:44Z |
--- Walter Neumann <walter@...> a
écrit : > Hi,
=============
by
Do You Yahoo!? -- Une adresse @... gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com
écrit : > Hi,
> I wrote a SP, which worked fine. Then I changed it,Try to replace the following instructions
> and now I recieve always
> ANZAHL=0. The 1. SP had no input parameters. I used
> always 'TODAY' for
> comparison. Here is the new SP:
>
> ALTER PROCEDURE "MITARB_COUNT"
> (
> "STICHTAG2" TIMESTAMP,
> "STICHTAG1" TIMESTAMP
> )
> RETURNS
> (
> "ANZAHL" INTEGER
> )
> AS
> DECLARE VARIABLE MAID INT;
> BEGIN
> ANZAHL = 0;
> FOR SELECT MA.PERSONENIDINT FROM MITARBVIEW MA
> WHERE :STICHTAG2 >= (SELECT
> MAX(EA.EINTRITTSDATUM) FROM MITARBEINAUSVIEW
> EA
> WHERE ((EA.MITARBID = MA.PERSONENIDINT)
> AND ((EA.AUSTRITTSDATUM IS NULL) OR
> (EA.AUSTRITTSDATUM >=
> :STICHTAG1))))
> INTO :MAID
> DO
> BEGIN
> ANZAHL = ANZAHL + 1;
> END
> SUSPEND;
> END
>
> Thank you for your advices.
>
> Walter
>
> ------------------------ Yahoo! Groups Sponsor
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
=============
> INTO :MAID=============
> DO
> BEGIN
> ANZAHL = ANZAHL + 1;
> END
> SUSPEND;
by
> INTO :MAID___________________________________________________________
> DO
> BEGIN
> ANZAHL = ANZAHL + 1;
>>>> SUSPEND;
> END
>
Do You Yahoo!? -- Une adresse @... gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com