X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 82D6C47580B for ; Mon, 12 May 2003 17:53:45 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id C2CB7474E42 for ; Mon, 12 May 2003 17:53:44 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h4CLrhU6017124; Mon, 12 May 2003 17:53:44 -0400 (EDT) To: "Katka a Daniel Dunajsky" Cc: pgsql-sql@postgresql.org Subject: Re: Why this query does not work? In-reply-to: References: Comments: In-reply-to "Katka a Daniel Dunajsky" message dated "Mon, 12 May 2003 11:55:57 -0600" Date: Mon, 12 May 2003 17:53:43 -0400 Message-ID: <17123.1052776423@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/225 X-Sequence-Number: 13390 "Katka a Daniel Dunajsky" writes: > Why this does not gives correct result? You've missed the trailing blanks in TO_CHAR's result. Probably you should be using FMMonth not Month as the format specifier. regards, tom lane