Re: Question(s) about crosstab

Поиск
Список
Период
Сортировка
От Ken Tanzer
Тема Re: Question(s) about crosstab
Дата
Msg-id CAD3a31UxPwVYDGWnnM2FebcP-mGqxRHiCz8JFiYx8fyy=gDkQw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Question(s) about crosstab  (rob stone <floriparob@gmail.com>)
Список pgsql-general
On Tue, Dec 17, 2013 at 3:47 PM, rob stone <floriparob@gmail.com> wrote:


SELECT UH.grant_number_code, UH.housing_project_code, UH. count,
UT.description
FROM l_unit_type UT, unit_hold UH
WHERE UH.unit_type_code = UT.unit_type_code;


Easier to create a view.


Thanks Rob, but that doesn't get the data into a 1 line per grant/building format, with the unit types as columns.  That's why I was looking at crosstab in the first place!

Cheers,
Ken

--
AGENCY Software  
A data system that puts you in control
100% Free Software
(253) 245-3801

learn more about AGENCY or
follow the discussion.

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

Предыдущее
От: rob stone
Дата:
Сообщение: Re: Question(s) about crosstab
Следующее
От: David Johnston
Дата:
Сообщение: Re: Question(s) about crosstab