From: | "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Group by minute |
Date: | 2006-09-22 13:52:00 |
Message-ID: | 55c095e90609220652t356c8591u412046aed091a52f@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hil list,
I have a query but my IDE (Delphi) does not accept "to_char" capability. Is
there a way to reproduce the same query without using to_char function ?
Here is my query:
SELECT to_char(quando,'dd/MM/yyyy HH24:MI'),count(id)
FROM base.tentativa
WHERE (SESSAO_ID = 15)
GROUP BY to_char(quando,'dd/MM/yyyy HH24:MI')
order by 1
Regards ...
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Atenciosamente (Sincerely)
Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Niklas Johansson | 2006-09-22 14:10:54 | Re: Group by minute |
Previous Message | MaXX | 2006-09-21 22:48:14 | Re: Help with optional parameters |