Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Statement
Message
De
07/03/2003 15:38:23
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Select Statement
Divers
Thread ID:
00762981
Message ID:
00762981
Vues:
38
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.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform