join two tables with sharing some columns between two

Поиск
Список
Период
Сортировка
Искать
От
filippo
Тема
join two tables with sharing some columns between two
Дата
Msg-id
1151329151.231866.175920@u72g2000cwu.googlegroups.com
Список
Дерево обсуждения
join two tables with sharing some columns between two "filippo" <filippo2991@virgilio.it>
Re: join two tables with sharing some columns between two "Phillip Smith" <phillips@weatherbeeta.com.au>
Re: join two tables with sharing some columns between two Thomas Beutin <psql@laokoon.IN-Berlin.DE>
Hi,

I have two tables like these: (this is an example, the actual tables
have diffferent fields and meanings)

TABLE1
id
person_name
date_arrival
date_departure

TABLE2
id
car_description
date_arrival
date_departure

I'd like to make a query to have such resulting table

RESULTING_TABLE
id
person_name
car_description
date_arrival
date_departure

the id is the primary key for the three tables and it's unique for the
three (id in table1 cannot be in table2, I use the same counter to
generate the id for table1 and table2).


I is possible to create such a query?

Thanks


В списке pgsql-sql по дате отправления
От: Richard Broersma Jr
Дата:
От: Parang Saraf
Дата:
FAQ