Using subselects as joins in POstgeSQL (possible?, examples)

Поиск
Список
Период
Сортировка
Искать

Using subselects as joins in POstgeSQL (possible?, examples)

От:
frank church <pgsql@adontendev.net>
Дата:


Is it possible to use subselects as joins in PostgreSQL.

eg.

select a.a, a.b, a.c, b.a, b.b. b.c from (first subsselect) a (second subselect)
b  where (in table criteria) and a.a = b.a

or

select a.a, a.b, a.c, b.a, b.b. b.c from (first subsselect) a join (second
subselect) b on a.a = b.a where (in table criteria)

I have a feeling it is possible but I need the right syntax

//Frank



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Re: Using subselects as joins in POstgeSQL (possible?, examples)

От:
Pascual De Ruvo <deruvo@gmail.com>
Дата:


On 7/22/05, frank church <pgsql@adontendev.net> wrote:


Is it possible to use subselects as joins in PostgreSQL.

Absolutely.

 select * from
(select * from table1) as a,
(select * from table2) as b
where a.a = b.b




FAQ