Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select Union statement
Message
De
24/09/2004 09:23:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Select Union statement
Divers
Thread ID:
00945706
Message ID:
00945706
Vues:
61
Hello all.
I need help running this on Foxpro 2.6W( 2.6 does not understand INNER/LEFT/RIGHT e.tc. joins).

SELECT PROJECTS.PROJID,;
PROJECTS.PROJ_NAME,;
CNS_NOTE.CSNT_NOTE;
FROM CONSULT, PROJECTS,CONSLIST,CNS_NOTE;
WHERE PROJECTS.PROJID = CONSLIST.PROJID ;
AND CONSLIST.CONSKEY = CONSULT.CONSKEY ;
AND CONSULT.CONSKEY = CNS_NOTE.CONSKEY ;
AND (PROJECTS.PJ_STATUS="ACQ-CONTRACT" ;
AND (CONSLIST.TYPE="CNS" ;
OR (CONSLIST.TYPE="GPX"));
AND PROJECTS.PACQASSOC="SFG") ;
INTO CURSOR VPDEALS6

The above statement works fine. But I also need all the record from CONSULT that doesn't have a match in CNS_NOTE table. I'm trying to use a UNION statemet but I can't get it to work properly.

Please help if you can.

Thanks
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform