From: | Michelle Murrain <tech(at)murrain(dot)net> |
---|---|
To: | "Thomas F(dot)O'Connell" <tfo(at)sitening(dot)com> |
Cc: | CHRIS HOOVER <CHRIS(dot)HOOVER(at)companiongroup(dot)com>, sad(at)bankir(dot)ru, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: help on a query |
Date: | 2004-10-08 15:19:21 |
Message-ID: | 4166AFF9.1000603@murrain.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Thomas F.O'Connell wrote:
> I think the OUTER JOIN version is probably more efficient, but EXPLAIN
> would tell you.
Well, this all makes me feel better. For everyone's edification:
select registration_id FROM registrations
where registration_id not in (select registration_id from receipts);
Generates 0 rows
The OUTER JOIN version is quite a bit more efficient (by an order of
magnitude) than the option with WHERE NOT EXISTS subquery.
Thanks all for the help. Saved my butt again!!
--
.Michelle
--------------------------
Michelle Murrain
mmurrain at dbdes dot com
413-222-6350 ph
617-889-0929 ph
952-674-7253 fax <--- new
Page: pageme(at)murrain(dot)net
AIM:pearlbear0 ICQ:129250575
Skype: pearlbear
Jabber: pearlbear(at)transactim(dot)net
"I see all the different religious traditions as paths for the
development of inner peace, which is the true foundation of world peace.
These ancient traditions come to us as a gift from our common past. Will
we continue to cherish it as a gift and hand it over to the future
generations as a legacy of our shared desire for peace?" - His Holiness
the Dalai Lama
From | Date | Subject | |
---|---|---|---|
Next Message | sreejith s | 2004-10-08 17:51:25 | Record Count |
Previous Message | Thomas F.O'Connell | 2004-10-08 15:06:57 | Re: help on a query |