Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL JOIN
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00155673
Message ID:
00155803
Views:
13
>Given that exp_1 and ass_sclass represent the fields on which to join, you could try this statement:
>
>select distinct NVL(Customer.exp_1, TP.exp_1), ;
> NVL(Customer.ass_sclass, TP.ass_sclass), ;
> Customer.cnt, TP.cnt ;
>from customer full outer join TP ;
> on customer.exp_1 = TP.exp_1 ;
>and customer.ass_sclass = TP.ass_sclass ;
>into table category
>
>Arne
>
>>I have 2 tables I wish to join. They both have the same structure, but the conditions they were created with are different. Here's the statement I use:
>>
>>select distinct exp_1, ass_sclass, Customer.cnt, TP.cnt ;
>>from customer full join TP ;
>>into table category
>>
>>I get a syntax error when I try to run the program, but according to the help file, syntax is correct. Any thoughts??
>>
>>TIA


Thanks for all the advice
Perry E. Chrzanowski
Programmer/Analyst
Saturn (Solutions) Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform