On Mon, 2002-07-08 at 09:28, Narendra A wrote:
> Sir,
> Is there a way in sql such that if I give seconds it should me return me
> hours:mins:seconds
>
> Eg. Seconds hh:mm:ss
> 422 1:01:02
scratch=# SELECT 422::interval;
interval
----------
00:07:02
(1 row)
scratch=# \q
dstanawa(at)ciderbox:~$ bc -l
7*60+2
422
I don't know where you got 1:01:02 from.
--
David Stanaway