Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is wrong in my sql statement
Message
From
15/11/2000 14:16:39
 
 
To
15/11/2000 13:20:28
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00442223
Message ID:
00442254
Views:
16
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform