X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3E523D1D16D for ; Thu, 19 Feb 2004 21:05:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 24928-06 for ; Thu, 19 Feb 2004 17:05:04 -0400 (AST) Received: from mail-s03.websys.aol.com (mail-s03.websys.aol.com [64.12.180.167]) by svr1.postgresql.org (Postfix) with ESMTP id C8788D1D132 for ; Thu, 19 Feb 2004 17:05:01 -0400 (AST) Received: from inf-s24.websys.aol.com (inf-s24.websys.aol.com [172.20.116.86]) by mail-s03.websys.aol.com (8.12.10/8.12.9) with ESMTP id i1JL52Uq023909 for ; Thu, 19 Feb 2004 16:05:02 -0500 (EST) Received: from comcast.net (dhcp178-176-84.office.aol.com [10.178.176.84]) by inf-s24.websys.aol.com (8.12.10/8.12.9) with ESMTP id i1JL4v9c000096 for ; Thu, 19 Feb 2004 16:04:57 -0500 (EST) Message-ID: <403524D6.5060706@comcast.net> Date: Thu, 19 Feb 2004 16:04:22 -0500 From: Gnugeek User-Agent: Mozilla Thunderbird 0.5 (X11/20040209) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Date / interval question References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/324 X-Sequence-Number: 17014 I'm looking for a way, within SQL, given a starting date and an ending date, to get back the number of months between the start and end date. If I "SELECT end_date - start_date", I get back an interval in days; I need months. Thanks for any suggestions, Brian