Skip site navigation (1) Skip section navigation (2)

join a lot of columns of two tables

From: ivan marchesini <marchesini(at)unipg(dot)it>
To: pgsql-sql(at)postgresql(dot)org
Subject: join a lot of columns of two tables
Date: 2006-12-14 11:01:00
Message-ID: 1166094060.5978.22.camel@geoivan (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
Dear Postgres Users,
I have 2 tables...
each one has a column called ID (primary keys of each table)
the values into each ID column are exactly the same.

each table has a lot of other columns (around 50 for each table)....

I would like to create a table containing the ID (only one column
obviously) and all the other columns of both tables...

a simple equi join for each column is simple but how can I join
completely the two table on the bases of the column ID???

probably it is a simple question but I don't know how to solve this very
simple problem quikly...  :-(


Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg.
Preferisco formati liberi.
Please try to avoid to send me  .doc, .xls, .ppt, .dwg files.
I prefer free formats.

Ivan Marchesini
Department of Civil and Environmental Engineering
University of Perugia
Via G. Duranti 93/a 
Perugia (Italy)
e-mail: marchesini(at)unipg(dot)it
tel: +39(0)755853760
fax: +39(0)755853756
jabber: geoivan73(at)jabber(dot)org


pgsql-sql by date

Next:From: Peter ChildsDate: 2006-12-14 11:09:13
Subject: Re: join a lot of columns of two tables
Previous:From: Jim ButtafuocoDate: 2006-12-14 02:53:36
Subject: Re: Rule for multiple entries

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group