Re: Postgresql sql query - selecting rows outside a join - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Postgresql sql query - selecting rows outside a join
Date
Msg-id Pine.LNX.4.44.0312011831150.31748-100000@kix.fsv.cvut.cz
Whole thread Raw
In response to Postgresql sql query - selecting rows outside a join  (Graham Leggett <minfrin@sharp.fm>)
List pgsql-general
Hello



On Mon, 1 Dec 2003, Graham Leggett wrote:

> Hi all,
>
> I am trying to do a query that returns  all rows that are _not_ part of
> a join, and so far I cannot seem to find a query that doesn't take 30
> minutes or more to run.
>
> The basic query is "select * from tableA where tableA_id NOT IN (select
> tableA_id from tableB)".
>
> Is there a more efficient way of doing this?
>
> Regards,
> Graham
> --
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
>


pgsql-general by date:

Previous
From: Graham Leggett
Date:
Subject: Postgresql sql query - selecting rows outside a join
Next
From: "Arjen van der Meijden"
Date:
Subject: Re: Postgresql sql query - selecting rows outside a join