Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax Error with SQL
Message
 
 
À
18/03/2003 14:51:40
N. Lea
Nic Cross Enterprises
Valencia, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00767204
Message ID:
00767218
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform