Received: from acheron.rime.com.au (root@albatr.lnk.telstra.net [139.130.54.222]) by hub.org (8.10.1/8.10.1) with ESMTP id e7CDwru63056 for ; Sat, 12 Aug 2000 09:58:53 -0400 (EDT) Received: from oberon (Oberon.rime.com.au [203.8.195.100]) by acheron.rime.com.au (8.9.3/8.9.3) with SMTP id XAA01683; Sat, 12 Aug 2000 23:59:00 +1000 Message-Id: <3.0.5.32.20000812235924.0242ad80@mail.rhyme.com.au> X-Sender: pjw@mail.rhyme.com.au X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sat, 12 Aug 2000 23:59:24 +1000 To: John McKown From: Philip Warner Subject: Re: Operator Precedence problem? Cc: pgsql-sql@hub.org In-Reply-To: References: <3.0.5.32.20000812154918.01f4e1d0@mail.rhyme.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200008/87 At 08:53 12/08/00 -0500, John McKown wrote: >Every language that I've ever used (other than APL) has the precedence of >"or" being less than "and". So I would always expect the "and" clauses to >be evaluated first, then the "or". Just like in math, where in an >equation, I expect that the multiplication (and) is done before the >addition (or). Unless modified by parentheses just as in your second >example. You're quite right; I think I must have been punch drunk from beating my head against another problem. Thanks. ---------------------------------------------------------------- Philip Warner | __---_____ Albatross Consulting Pty. Ltd. |----/ - \ (A.B.N. 75 008 659 498) | /(@) ______---_ Tel: (+61) 0500 83 82 81 | _________ \ Fax: (+61) 0500 83 82 82 | ___________ | Http://www.rhyme.com.au | / \| | --________-- PGP key available upon request, | / and from pgp5.ai.mit.edu:11371 |/