From: | Shachar Shemesh <psqll(at)shemesh(dot)biz> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | sequencing two tables |
Date: | 2004-11-28 21:31:29 |
Message-ID: | 41AA43B1.2060707@shemesh.biz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi list,
I need to create a list of all rows of the combination of two tables.
For reasons I can't go into, I need this list to be in a single query,
and not write a function to do it.
I thought about doing something like this:
select |COALESCE(table1.field, table2.field) as field from table1 full
outer join table2 on false
There is just one small problem. Even though logically this does what
I'm trying to do, postgres says:
"FULL JOIN is only supported with merge-joinable conditions".
I don't even understand the error message, much less whether I'm doing
anything wrong, and whether I'm missing something stupifyingly obvious here.
Help?
Postgres version is 7.4
Shachar
|
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Marc G. Fournier | 2004-11-28 23:34:28 | Adding Reply-To: <listname> to Lists configuration ... |
Previous Message | Tom Lane | 2004-11-28 21:05:49 | Re: Retrieving values of int8 numeric field using ODBC with LInux clients. |