Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is wrong in my sql statement
Message
De
15/11/2000 14:16:39
 
 
À
15/11/2000 13:20:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00442223
Message ID:
00442254
Vues:
8
>lsqlstring = " SELECT Purchase.*, Accmst.accname, Depts.deptname;
>               FROM  purchase LEFT OUTER JOIN accmst;
>               LEFT OUTER JOIN depts ;
>               ON  Purchase.department = Depts.deptno  ;
>               ON  Purchase.partycode = Accmst.acccd"
Don't nest the joins, e.g.
lsqlstring = " SELECT Purchase.*, Accmst.accname, Depts.deptname;
               FROM  purchase ;
               LEFT OUTER JOIN accmst;
               ON  Purchase.partycode = Accmst.acccd";
               LEFT OUTER JOIN depts ;
               ON  Purchase.department = Depts.deptno
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform