× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



You mean like:
select * from jhhl1
....+....1...
MYKEY  MYCHAR
  A    Test A
  B    Test B
  C    Test C
********  End

Select * from jhhl2
....+....1...
MYKEY  MYCHAR
  D    Test D
  E    Test E
  F    Test F
********  End

Select * from jhhl3
....+....1....+..
MYKEY  MYCHAR 
  C    Test 1 
  F    Test 2 
********  End

select * from jhhl1
union 
select * from jhhl2
....+....1...
MYKEY  MYCHAR
  A    Test A
  B    Test B
  C    Test C
  D    Test D
  E    Test E
  F    Test F
********  End

select * from jhhl1 a 
 where a.mykey not in (select mykey from jhhl3)
union 
select * from jhhl2 b 
 where b.mykey not in (select mykey from jhhl3)
....+....1...
MYKEY  MYCHAR
  A    Test A
  B    Test B
  D    Test D
  E    Test E
********  End

In theory an EXCEPT might run more efficiently if you can set it up to run 
against the result of the union as a whole and not have to run the "not 
in" repeatedly.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.