Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simplify SQL select
Message
From
29/05/1998 11:50:15
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00102530
Message ID:
00103136
Views:
26
>>>What do you think about using a "group by" or a "select distinct" instead of checking in your second section of your union that the records aren't in your first section.
>>
>>There will be unwanted records if distinct is used because the is a quaranteed match with the lim_def table. The intent is to only use the lim_def data when the lim_txt data does not exist.
>
>Albert,
>
>Please forgive mre but I do not have the "picture" for this problem here so I will ask a question... Would an outer join take care of this?

No, the issue is that some of the columns need to be populated with values from one source if an inner join can be made, and from another source if and only if the the inner join could not be made.
Previous
Reply
Map
View

Click here to load this message in the networking platform