Re: Diferences between IN and EXISTS?

From: zeljko <zeljko(at)holobit(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Diferences between IN and EXISTS?
Date: 2013-02-04 09:35:37
Message-ID: kenvd9$1pi0$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edson Richter wrote:

> Hi!
>
> Assumptions: PostgreSQL 9.2.2, Win64, already run vacumm full freeze
> analyze. No problems in the database. I know there are 1247 records to
> be found.
> Why does these queries return different results:
>
>
> select count(*) from parcela
> where id not in (select parcela_id from cadastroservicoparcela);

I'm always using
WHERE NOT id in (blabla) and never had such problems.

zeljko

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2013-02-04 10:13:10 Re: Diferences between IN and EXISTS?
Previous Message Morus Walter 2013-02-04 09:34:54 grouping consecutive records