Re: ORDER the result of a query by date
От | Henshall, Stuart - Design & Print |
---|---|
Тема | Re: ORDER the result of a query by date |
Дата | |
Msg-id | E2870D8CE1CCD311BAF50008C71EDE8E0506DC74@MAIL_EXCHANGE обсуждение исходный текст |
Ответ на | ORDER the result of a query by date (andres javier garcia garcia <andresjavier.garcia@wanadoo.es>) |
Список | 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 по дате отправления: