Re: sum timestamp result in hours - Mailing list pgsql-sql

From Scott Marlowe
Subject Re: sum timestamp result in hours
Date
Msg-id dcc563d10811070849n696fd4aarcc95eec20d67c8a@mail.gmail.com
Whole thread Raw
In response to Res: sum timestamp result in hours  (paulo matadr <saddoness@yahoo.com.br>)
List pgsql-sql
On Fri, Nov 7, 2008 at 9:36 AM, paulo matadr <saddoness@yahoo.com.br> wrote:
> I change form to create query  but basically need
> sum(rgat.rgat_tmencerramento - rgat.rgat_tmregistroatendimento) = result in
> hours
> sumary:
> rgat.rgat_tmencerrament = timestamp column
> gat.rgat_tmregistroatendimento = timestamp column

select extract('epoch' from '4 days 6 hours 3 minutes'::interval)*
interval '1 sec';


pgsql-sql by date:

Previous
From: paulo matadr
Date:
Subject: Res: sum timestamp result in hours
Next
From: "Devil™ Dhuvader"
Date:
Subject: Re: need help in building a query