Re: Turning column into row

Поиск
Список
Период
Сортировка
От Tille, Andreas
Тема Re: Turning column into row
Дата
Msg-id Pine.LNX.4.44.0205221514460.8932-100000@wr-linux02.rki.ivbb.bund.de
обсуждение исходный текст
Ответ на Re: Turning column into row  (Gabriel Dovalo Carril <dovalo@terra.es>)
Список pgsql-sql
On Wed, 22 May 2002, Gabriel Dovalo Carril wrote:

> Select item.item,
>   max(case when property.idproperty = 0 then property.property else
> ''::text end) as p0,
>   max(case when property.idproperty = 1 then property.property else
> ''::text end) as p1
> >From item, property, tlkp_item_property
> Where item.iditem = tlkp_item_property.iditem and
>     tlkp_item_property.idproperty = property.idproperty
> Group by item.item;

Thanks a lot.  This helped much.  Any hints if there are online
documents available which do explain those problems?

Kind regards
          Andreas.


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

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Bug with ORDER BY expression [ ASC | DESC ] ?
Следующее
От: "Wm. G. Urquhart"
Дата:
Сообщение: Re: Turning column into row