Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Statement
Message
 
 
À
07/03/2003 15:38:23
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00762981
Message ID:
00762987
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Henry,

Use parenthesises to correctly group your conditions for AND and OR.

>Hi all:
>
>I have the following code:
>
>
SELECT services.feesubmit,.................... ;
>		from services ;
>		into cursor unpaids nofilter ;
>		where services.paid <> "YES" .AND. ;
>			services.billed ="YES"  .and. ;
>			services.claim_no > 0 .or. ;
>			services.invoice_no > 0 .and.;
>			services.closeclaim <> "YES" .and.;
>			(services.amt_paid - (services.feesubmit+services.feesubmit1+services.feesubmit2+;
>		services.feesubmit3+services.feesubmit4+services.feesubmit5+;
>		feesubmit6)) < 0
>
>
>Current Outcome: Shows both under and over payments.
>
>Desired Outcome: Only negative variances should be selected. Underpayments only.
>
>Where am I going wrong in the logic of the select statement? Thanks in advance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform