Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax Error with SQL
Message
From
18/03/2003 14:59:28
 
 
To
18/03/2003 14:51:40
N. Lea
Nic Cross Enterprises
Valencia, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00767204
Message ID:
00767218
Views:
14
>Do you mean like this?
	select a.inv_no, b.account_no, b.location, c.acc_name, d.part_desc ; 
	from order_file a inner join work_history b, work_history b inner ;
            join customer_billing c, order_file a inner join order_items d;
	on a.inv_no = b.inv_no
	into cursor sql_data
>>You need to explicit Join all the tables, A with B, B with C, C with D, or whatever relation you have.


I mean like this:
   SELECT a.inv_no, b.account_no, b.location, c.acc_name, d.part_desc ;
      FROM order_file a INNER JOIN work_history b ON a.inv_no=b.inv_no ;
                 INNER JOIN customer_billing C ON b.<InnerField> = c.<RelatedField> .... and the next.
See in your VFP help the topic "Join Conditions for Tables, Queries, and Views"
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform