Re: very simple: How can I multiply tables?

From: "Mikhail V(dot) Majorov" <mik(at)ttn(dot)ru>
To: Michael Ansley <Michael(dot)Ansley(at)intec-telecom-systems(dot)com>
Cc: "'mik(at)nix(dot)org(dot)ru'" <mik(at)nix(dot)org(dot)ru>, pgsql-general(at)postgresql(dot)org
Subject: Re: very simple: How can I multiply tables?
Date: 2001-02-14 16:27:13
Message-ID: 3A8AB1E1.79B039B7@ttn.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Michael Ansley wrote:
>
> INSERT INTO table3 (id, surname, dt) SELECT table1.id, table1.surname,
> table2.dt FROM table1, table2;
> or
> CREATE TABLE table3 AS SELECT table1.id, table1.surname, table2.dt
> FROM table1, table2;
>
> It's called a cross-join.

You are absolutely right.
But I don't find any information about JOIN in SELECT sentences. :(
Could you give me example of LEFT or RIGHT JOIN.

Best regards,
Mik.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adam Lang 2001-02-14 16:37:24 Re: Re: Bad book review
Previous Message Mikhail V. Majorov 2001-02-14 16:22:09 Re: Re: very simple: How can I multiply tables?