Re: find the "missing" rows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: db(at)ke5in(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: find the "missing" rows
Date: 2004-12-02 01:53:11
Message-ID: 28993.1101952391@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Kevin B." <db(at)ke5in(dot)com> writes:
> Select a.i, b.i
> from t as a
> left join t as b on a.i = b.i
> where a.n = 'a' and b.n = 'b' and b.i is null

This can't succeed since the b.n = 'b' condition is guaranteed to fail
when b.* is nulled out ...

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Iain 2004-12-02 02:22:56 invalid 'having' clause
Previous Message Christopher Browne 2004-12-01 22:46:45 Re: Found Large Files.. what objects are they?