Re: Split the result of a query in 2 rows

Поиск
Список
Период
Сортировка
От David G Johnston
Тема Re: Split the result of a query in 2 rows
Дата
Msg-id 1425494805753-5840502.post@n5.nabble.com
обсуждение исходный текст
Ответ на Split the result of a query in 2 rows  (JORGE MALDONADO <jorgemal1960@gmail.com>)
Ответы Re: Split the result of a query in 2 rows  (Yaser Raja <yrraja@gmail.com>)
Список pgsql-novice
JORGE MALDONADO wrote
> I have a very simple query to a single table as follows:
>
> SELECT field1, field2 FROM tbl_table ORDER BY field1
>
> Is it possible to "split" the results so field1 is displayed in one row
> and
> field2 in another row?
>
> Best regards,
> Jorge Maldonado

See "UNION ALL"

David J.




--
View this message in context: http://postgresql.nabble.com/Split-the-result-of-a-query-in-2-rows-tp5840497p5840502.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.


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

Предыдущее
От: JORGE MALDONADO
Дата:
Сообщение: Split the result of a query in 2 rows
Следующее
От: Yaser Raja
Дата:
Сообщение: Re: Split the result of a query in 2 rows