http://stackoverflow.com/questions/227037/can-i-get-better-performance-using-a-join-or-using-exists
On Sun, Apr 29, 2012 at 5:27 AM, AI Rumman <rummandba@xxxxxxxxx> wrote:
I can write a query to solve my requirement in any of the followings :-1.select *from awhere NOT EXISTS(select 1from bunion allselect *from b2.select(case when b.id is not null thenelse) as idfrom aleft join bAny one please tell me which one is better?