X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 426419DCDE6 for ; Fri, 3 Mar 2006 05:28:25 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07654-06 for ; Fri, 3 Mar 2006 05:28:25 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by postgresql.org (Postfix) with ESMTP id 683559DCDE3 for ; Fri, 3 Mar 2006 05:28:20 -0400 (AST) Received: obelix 172.31.0.1 from 172.31.1.4 172.31.1.4 via HTTP with MS-WebStorage 6.0.6249 Received: from panoramix by obelix; 03 Mar 2006 10:28:21 +0100 Subject: Re: Why do I get these results????? From: Joost Kraaijeveld To: Van Elsacker Frans Cc: Pgsql-Sql In-Reply-To: <440806FA.1040804@atbib.be> References: <1141375840.4267.16.camel@localhost> <440806FA.1040804@atbib.be> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 03 Mar 2006 10:27:50 +0100 Message-Id: <1141378070.4267.25.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.082 required=5 tests=[AWL=0.081, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.082 X-Spam-Level: X-Archive-Number: 200603/62 X-Sequence-Number: 24408 Hi Frans On Fri, 2006-03-03 at 10:06 +0100, Van Elsacker Frans wrote: > Joost > > Why do you use > > AND TRIM(UPPER(addresses.city)) >= TRIM(UPPER('NIJMEGEN')) > and not > AND TRIM(UPPER(addresses.city)) = TRIM(UPPER('NIJMEGEN')) > > upper(Rotterdam) en upper(Someren) meets >= TRIM(UPPER('NIJMEGEN')) Because that is what I want: I want everyone that is called "xxxx" and lives in a city that is equal or larger than "yyyy". Jansen and Nijmegen are just examples. > commentline with order statements can not influence the content of the > result What do you mean by that? -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 e-mail: J.Kraaijeveld@Askesis.nl web: www.askesis.nl