Re: LEFT JOIN and missing values

From: mila boldareva <me(at)pierro(dot)dds(dot)nl>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: LEFT JOIN and missing values
Date: 2003-03-12 20:49:59
Message-ID: 167817250594.20030312214959@pierro.dds.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tomasz,
> I think if you really need to remove your 0.5 values, you need another
> table with all possible values of id1. This table will look like:
> create table t3
> (
> id1 integer;
> );

T1 contains values of id's,
The T2 matrix is a matrix of some sort of "distances" between id's
from T1, so original T2 is a T1 x T1.
(that's what you are proposing right?)

So there is no id1, id2 in T2 that don't exists in T1,
I checked my test tables and this is indeed the case.
In other words T1 is dense, I make a left join on it and I get wrong results!
And even wrong number of tuples :-(

cheers,
Mila

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message David 2003-03-12 20:59:37 Deleting large object from table pg_largeobject
Previous Message Steve Crawford 2003-03-12 20:49:07 Re: DELETE FROM A BLACK LIST