From: Kevin Old <kold@carolina.rr.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Subtracting time fields
Date: 01 Nov 2002 17:05:26 -0500
Message-ID: <1036188325.6778.67.camel@oc> (raw)
Hello all,
I have two fields in my database access_time and release_time.....I
would like to calculate the "duration" between these two values, but
can't figure out what to do.
I've tried something like this but it doesn't work:
select access_time, release_time, time(access_time) - time(release_time)
as duration from mastertbl limit 10
Any suggestions?
Thanks,
Kevin
--
Kevin Old <kold@carolina.rr.com>
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: kold@carolina.rr.com
Subject: Re: Subtracting time fields
In-Reply-To: <1036188325.6778.67.camel@oc>
* 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