Article View: borland.public.interbase.sql
Article #11251Re: Stored proc.
From: Rafael Vacas
Date: Fri, 29 Nov 2002 11:43
Date: Fri, 29 Nov 2002 11:43
19 lines
1350 bytes
1350 bytes
Hi Henry, Try this and let me know ... FOR SELECT DISTINCT C.CUSTNO, C.TOTAL, C.DUEDATE, C.PSTATE, D.CUSTNAME FROM CHECK C , CUSTOMERS D WHERE (C.CUSTNO=D.CUSTNO) and ( (:paym=0 and c.payment is null) or (:paym=1 and c.payment is not null) ) ORDER BY C.DUEDATE, C.CUSTNO INTO :CUSTNO, :TOTAL, :DUEDATE, :PSTATE, :CUSTNAME DO SUSPEND; END Rafael A CoruοΏ½a
Technical Details
Message-ID:
<3de7527f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3de3c125@newsgroups.borland.com> <3de6712b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 114a0e,eeb00b0c9b1e6578 X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-11-29 04:12:02 PST From: "Rafael Vacas" <rvacas@bit.es> Newsgroups: borland.public.interbase.sql References: <3de3c125@newsgroups.borland.com> <3de6712b@newsgroups.borland.com> Subject: Re: Stored proc. Date: Fri, 29 Nov 2002 12:43:32 +0100 Lines: 22 Organization: Bit7 S.L. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 213.98.123.244 Message-ID: <3de7527f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1038570111 213.98.123.244 (29 Nov 2002 03:41:51 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail