Re: How to convert rows into HTML columns?

From: Stefan Schwarzer <stefan(dot)schwarzer(at)grid(dot)unep(dot)ch>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to convert rows into HTML columns?
Date: 2007-10-05 07:13:10
Message-ID: AFB440A5-96C3-48D7-9E72-83B3358927EE@grid.unep.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>
>> And the next question coming up is: How should my query look like so
>> that I can sort the (HTML) table by a specific year in ascending or
>> descending order? So, that it doesn't display it by the country names
>> alphabetical order, but by, say 1998?
>
> If you have only one row, how would you sort this result? ;-)

With the "old" design I had up to 240 rows - for each country/
territory one row. Now, I have 240*num_years rows.

The user should be able to sort then the resulting table by country
name as well as by any year in ASC or DESC order.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message A. Kretschmer 2007-10-05 07:33:58 Re: How to convert rows into HTML columns?
Previous Message A. Kretschmer 2007-10-05 06:56:42 Re: How to convert rows into HTML columns?