Re: ORDER the result of a query by date - Mailing list pgsql-sql

From Henshall, Stuart - Design & Print
Subject Re: ORDER the result of a query by date
Date
Msg-id E2870D8CE1CCD311BAF50008C71EDE8E0506DC74@MAIL_EXCHANGE
Whole thread Raw
In response to ORDER the result of a query by date  (andres javier garcia garcia <andresjavier.garcia@wanadoo.es>)
List pgsql-sql
<p><font size="2">andres javier garcia garcia wrote:</font><br /><font size="2">> Hello;</font><br /><font
size="2">>I've got the result of a query that appears as:</font><br /><font size="2">>  cod_variable |
cod_station| year | month | day | rain</font><br /><font size="2">>
---------------------+-------------------+--------+----------+</font><br/><font size="2">> ------+------</font><br
/><fontsize="2">>  30201           | 7237           | 1953 |        1 |   1 |    2</font><br /><font size="2">> 
30201          | 7237           | 1953 |        2 |   1 |    5</font><br /><font size="2">>  30201           |
7237          | 1953 |        3 |   1 |    0</font><br /><font size="2">>  30201           | 7237           | 1953
|       4 |   1 |   -3 .....</font><br /><font size="2">> </font><br /><font size="2">> (Of course, thanks to
StephanSzabo for the method to obtain this</font><br /><font size="2">> from my strange source data. I didn't think
thiswas possible.)</font><br /><font size="2">> </font><br /><font size="2">> After have done this query I've
realizedthat I need the data to be</font><br /><font size="2">> ordered by date. Do you have any
suggestion?</font><br/><font size="2">> </font><br /><font size="2">> Best regards</font><br /><font
size="2">>----------</font><br /><font size="2">> Javier</font><br /><font size="2">> </font><br /><font
size="2"> ORDERBY year,month,day should do it.</font><br /><font size="2">hth,</font><br /><font size="2">-
Stuart</font>

pgsql-sql by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Help on creating a High Availability PostgreSQL
Next
From: Horst Herb
Date:
Subject: Re: help!