Received: from linux2.johnmckown.net (adsl-64-216-0-33.dsl.eulstx.swbell.net [64.216.0.33]) by hub.org (8.10.1/8.10.1) with ESMTP id e9CIZEr80854 for ; Thu, 12 Oct 2000 14:35:14 -0400 (EDT) Received: from linux2 (IDENT:pgsql@linux2 [192.168.151.21]) by linux2.johnmckown.net (8.10.1/8.10.1) with ESMTP id e9CIb9L11543; Thu, 12 Oct 2000 13:37:10 -0500 Date: Thu, 12 Oct 2000 13:37:09 -0500 (CDT) From: John McKown X-Sender: pgsql@linux2.johnmckown.net To: Jean-Christophe Boggio cc: "Brian C. Doyle" , pgsql-sql@postgresql.org Subject: Re: if else query help In-Reply-To: <6812102772.20001012165653@thefreecat.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200010/122 X-Sequence-Number: 1784 On Thu, 12 Oct 2000, Jean-Christophe Boggio wrote: > portion of the day (although I don't know --yet-- how to convert > date2-date1 to an integer, trunc does not work). reltime(date2-date1)::int Will subtract date1 from date2, then cast it to an integer. John