Re: [SQL] sum ( time) problem

2004-06-13 Thread Willem de Jong
I'm afraid it is the only solution... Thanks for reply [EMAIL PROTECTED] (Bruno Wolff III) wrote in news:20040601140334.GA24188 @wolff.to: > On Thu, May 27, 2004 at 11:14:58 +, > Willem de Jong <[EMAIL PROTECTED]> wrote: >> >> >> >> If i do a sum(time) the result is like this '1 day 18:00:

Re: [SQL] sum ( time) problem

2004-06-01 Thread Bruno Wolff III
On Thu, May 27, 2004 at 11:14:58 +, Willem de Jong <[EMAIL PROTECTED]> wrote: > >> > >> If i do a sum(time) the result is like this '1 day 18:00:00'. But i'd > >> like to get a result like this '42:00:00'. > >> > >> How can i realise is by a query? You can do something like the following: (n

Re: [SQL] sum ( time) problem

2004-05-31 Thread Willem de Jong
"Loeke" <[EMAIL PROTECTED]> wrote in Dan heb je nog de 24-uurs notatie, en krijg je niet een result boven de 24-uurs notatie. news:[EMAIL PROTECTED]: > kijk eens bij functions and operators van de > sql help bij pgadmin > > "Willem de Jong" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PR

Re: [SQL] sum(time) problem

2003-01-17 Thread Tom Lane
Julian Scarfe <[EMAIL PROTECTED]> writes: >> It seems I've chosen the wrong type. Or is there another solution? > Correct diagnosis. You need the "interval" type, not the "time" type for > your second field. Interval is a time difference between two timestamps, > for example the time between the

Re: [SQL] sum(time) problem

2003-01-17 Thread Julian Scarfe
On 17/1/03 13:03, "Oliver Vecernik" <[EMAIL PROTECTED]> wrote: > sport=# \d polar >Table "polar" > Column | Type | Modifiers > +--+--- > ts | timestamp with time zone | not null > time | time without time zone | >

[SQL] sum(time) problem

2003-01-17 Thread Oliver Vecernik
Hi all, I've got following table structure: sport=# \d polar Table "polar" Column | Type | Modifiers +--+--- ts | timestamp with time zone | not null time | time without time zone | sport | integer