Basic SQL join question

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Basic SQL join question
Дата
Msg-id 3E39E8A8.7020001@mega-bucks.co.jp
обсуждение исходный текст
Ответы Re: Basic SQL join question  (Michael Meskes <meskes@postgresql.org>)
Re: Basic SQL join question  (Arjen van der Meijden <acm@tweakers.net>)
Re: Basic SQL join question  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
Sorry for this simple question but I can't seem to get Postgres to do
what I want ...

I want to get the concatenation of 2 or more tables with absolutely
nothing in common. How can I do this?

For example

Table a:

   a
-----
  a1
  a2
  a3

Table b:

   b
-----
  b1
  b2

Table c:

   c
-----
  c1
  c2
  c3
  c4

What is the proper SQL to return:

   a |  b |  c
---------------
  a1   b1   c1
  a2   b2   c2
  a3        c3
            c4


Thanks,

Jc


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Weird query plans for my queries, causing terrible performance.
Следующее
От: Justin Clift
Дата:
Сообщение: Re: text searching in postgres