Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Correct SQL
Message
 
À
29/05/1999 03:51:02
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00224286
Message ID:
00224341
Vues:
19
>SELE TRANS_VNO, TRANS_DATE, TRANS_CODEFK, GLMST_NAME, TRANS_PART, TRANS_AMT, ;
>TR2_CODE, GLMST_NAME, TR2_PART, TR2_AMT ;
>FROM ACTRANS, ACGLMST, ACTR2 WHERE TRANS_CODEFK=GLMST_CODEPK AND ;
>TRANS_KEYPK=TR2_KEYFK
>
>Can somebody give me the correct sql to get the right Glmst name...

It looks like your missing a join condition between TR2 and GL Master, so your probably getting the same GLMST_NAME in both columns?

what about something like...
WHERE TRANS_CODEFK=GLMST_CODEPK ;
AND TRANS_KEYPK=TR2_KEYFK ;
AND TR2_CODEFK = GLMST_CODEPK
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform