Re: The most efficient way to put this? - Mailing list pgsql-general

From rolf.ostvik@axxessit.no
Subject Re: The most efficient way to put this?
Date
Msg-id OFBB392D4A.09D3DEE3-ONC1256B73.0045D05D@axxessit.no
Whole thread Raw
In response to The most efficient way to put this?  ("Arsalan Zaidi" <azaidi@directi.com>)
List pgsql-general
On 2002-03-05 "Arsalan Zaidi" <azaidi@directi.com> wrote

>SELECT DISTINCT ON (aa.a) aa.a, aa.b, aa.c FROM aa WHERE aa.a NOT IN
(select
>zz.a from zz);

Does this work?

select distinct on (aa.a) aa.a, aa.b, aa.c
  from aa left join zz on aa.a = zz.a
  where zz.a isnull

--
Rolf




pgsql-general by date:

Previous
From: Jean-Michel POURE
Date:
Subject: Re: The most efficient way to put this?
Next
From: Bruno Wolff III
Date:
Subject: Re: Newbie question re SQL