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 73A8B8BA08B for ; Thu, 10 Feb 2005 22:58:07 +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 08958-03 for ; Thu, 10 Feb 2005 22:57:55 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 13CD68B9FD6 for ; Thu, 10 Feb 2005 22:57:56 +0000 (GMT) Received: (qmail 4782 invoked by uid 500); 10 Feb 2005 23:12:50 -0000 Date: Thu, 10 Feb 2005 17:12:50 -0600 From: Bruno Wolff III To: Johnny C Cc: pgsql-sql@postgresql.org Subject: Re: append fields for *where...* Message-ID: <20050210231250.GA4740@wolff.to> Mail-Followup-To: Johnny C , pgsql-sql@postgresql.org References: <2bffcc33050210144524608491@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2bffcc33050210144524608491@mail.gmail.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/131 X-Sequence-Number: 20242 On Thu, Feb 10, 2005 at 17:45:11 -0500, Johnny C wrote: > > How can you make month (append) - 01 - (append) year? and > pass that as a condition to the field date? Is this possible? You can EXTRACT the day of the month from the date. If you need this to use an index, you can create a functional index.