From: praveen vejandla <praveen_vejandla@rediffmail.com>
To: pgsql-sql@postgresql.org
Subject: averaging interval values
Date: 12 Nov 2002 15:40:07 -0000
Message-ID: <20021112154007.29603.qmail@webmail9.rediffmail.com> (raw)
Hi All,
I have a table with one varchar field that contains time
intervals.
Is there any way to average or sum those intervals in a table ?
Table name : test
field name : t2 (varchar(40))
it contains all intervals as below
t2
1:01:01
0:25:15
7:09:01
8:09:05
Is there any way to average or sum those above values using a
function?
i could not type cast the varchar(40) to interval type.
How to change the datatype of field from varchar to interval?
Thanks and Regards,
Praveen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: praveen_vejandla@rediffmail.com
Subject: Re: averaging interval values
In-Reply-To: <20021112154007.29603.qmail@webmail9.rediffmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox