X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 73FD43A5AE3 for ; Tue, 11 Jan 2005 22:23:34 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90642-01 for ; Tue, 11 Jan 2005 22:23:26 +0000 (GMT) Received: from skycasters.net (ns2.skycasters.com [204.232.30.3]) by svr1.postgresql.org (Postfix) with ESMTP id AA4EC3A5B1E for ; Tue, 11 Jan 2005 22:23:28 +0000 (GMT) Received: from rhino.esc1.com [206.71.98.3] by skycasters.net with ESMTP (SMTPD32-8.12) id A1DA364012A; Tue, 11 Jan 2005 17:23:22 -0500 Received: from rhino.esc1.com (localhost.localdomain [127.0.0.1]) by rhino.esc1.com (8.12.11/8.12.10) with ESMTP id j0BMIoKE012457 for ; Tue, 11 Jan 2005 17:18:50 -0500 Received: from localhost (localhost [[UNIX: localhost]]) by rhino.esc1.com (8.12.11/8.12.11/Submit) id j0BMIoU2012455 for pgsql-sql@postgresql.org; Tue, 11 Jan 2005 17:18:50 -0500 From: Terry Lee Tucker Organization: Enhanced Solutions Computing To: pgsql-sql@postgresql.org Subject: Re: Simple Question Date: Tue, 11 Jan 2005 17:18:50 -0500 User-Agent: KMail/1.5.3 References: <200501111642.21716.terry@esc1.com> <20050111221545.GA9759@winnie.fuhr.org> In-Reply-To: <20050111221545.GA9759@winnie.fuhr.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501111718.50810.terry@esc1.com> X-Declude-Sender: terry@esc1.com [127.0.0.1] X-Declude-Spoolname: D51d90364012ac486.SMD X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/48 X-Sequence-Number: 19836 Thank you for the reply in spite of the subject. On Tuesday 11 January 2005 05:15 pm, Michael Fuhr saith: > On Tue, Jan 11, 2005 at 04:42:21PM -0500, Terry Lee Tucker wrote: > > Subject: [SQL] Simple Question > > Please use a more descriptive subject -- think about how somebody > looking at a list of 200 messages, all with subjects like "Simple > Question" or "PostgreSQL Question," would decide to look at yours. I will do this in the future. > > > drv_time = 478 / 45.0; > > > > The value of this is: 10.6222222222222222 > > > > Is there a way of converting this value to an interval. It seems that > > INTERVAL only works with a quoted literal value. > > You can do arithmetic on intervals: > > SELECT 478 / 45.0 * interval'1 hour'; I like your soultion better than mine. Thanks for the answer. > > For more information, see "Date/Time Functions and Operators" in > the documentation. > > -- > Michael Fuhr > http://www.fuhr.org/~mfuhr/ > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend Work: 1-336-372-6812 Cell: 1-336-363-4719 email: terry@esc1.com