Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Non-existent field in Query
Message
De
24/10/2002 16:55:52
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Non-existent field in Query
Divers
Thread ID:
00715157
Message ID:
00715157
Vues:
48
Hey everyone,
I am trying to execute the following code:
Select p.prempl, p.txqtr ;
from a_prehtx pre, a_prehtx p ;
where pre.txqtr = '2' And p.txqtr = '3' ;
AND (p.qtax = 0 AND p.qbase = 0 AND p.qwage = 0) ;
AND pre.prempl = p.prempl ;
AND p.ybase<>(pre.Ybase+NVL(p.qbase,0));
AND pre.taxid = p.taxid ;
group by p.prempl, p.txqtr into cursor curNeedUpdate2


The problem is that for certain prempl's, there are no txqtr = 2. Is there a way in FoxPro to ignore the pre.txqtr = '2' statement if there is not a txqtr = 2 for the prempl? I tried looking up an exists command but could not find one. Any help would be appreciated. Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform