From: | Ken Tanzer <ken(dot)tanzer(at)gmail(dot)com> |
---|---|
To: | rob stone <floriparob(at)gmail(dot)com> |
Cc: | PG-General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Question(s) about crosstab |
Date: | 2013-12-17 23:56:15 |
Message-ID: | CAD3a31UxPwVYDGWnnM2FebcP-mGqxRHiCz8JFiYx8fyy=gDkQw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Dec 17, 2013 at 3:47 PM, rob stone <floriparob(at)gmail(dot)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
*http://agency-software.org/ <http://agency-software.org/>*
ken(dot)tanzer(at)agency-software(dot)org
(253) 245-3801
Subscribe to the mailing
list<agency-general-request(at)lists(dot)sourceforge(dot)net?body=subscribe>
to
learn more about AGENCY or
follow the discussion.
From | Date | Subject | |
---|---|---|---|
Next Message | David Johnston | 2013-12-18 01:11:16 | Re: Question(s) about crosstab |
Previous Message | rob stone | 2013-12-17 23:47:18 | Re: Question(s) about crosstab |