>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only