Re: join two tables without a key - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: join two tables without a key
Date
Msg-id 4BB7201B.3020501@iol.ie
Whole thread Raw
In response to join two tables without a key  (Dino Vliet <dino_vliet@yahoo.com>)
Responses Re: join two tables without a key  (Dino Vliet <dino_vliet@yahoo.com>)
List pgsql-general
On 03/04/2010 11:16, Dino Vliet wrote:

> Hi postgresql list, If I have two tables with the same number of rows
> but different columns and I want to create one table out of them what
> would be the way to do that in postgresql?
>
> Table A has N number of rows and columns X,Y,Z and Table B has N
> number of rows and P,Q,R as columns. None of the tables have a
> column which can be used as a key.
>
> The resulting table should have N number of rows and X,Y,Z,P,Q,R as
> columns.

How do the rows in the tables relate to each other? You need to decide
first how you match the rows in A and B.

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

pgsql-general by date:

Previous
From: Dino Vliet
Date:
Subject: join two tables without a key
Next
From: Jeremy Harris
Date:
Subject: Re: join two tables without a key