Received: from farout.palaver.net (farout.palaver.net [208.15.176.1]) by hub.org (8.8.8/8.7.5) with SMTP id AAA04305 for ; Sat, 16 May 1998 00:41:34 -0400 (EDT) Received: from palaver.net (localhost [127.0.0.1]) by farout.palaver.net (8.6.11/8.6.11) with ESMTP id XAA03005 for ; Fri, 15 May 1998 23:48:43 -0500 Sender: ericm@palaver.net Message-ID: <355D1AAA.E0F1C3CF@palaver.net> Date: Fri, 15 May 1998 23:48:43 -0500 From: Eric McKeown Reply-To: ericm@palaver.net Organization: Palaver X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.1.89 i586) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: first post Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi there, folks. This is my first post to this list, and I'm hoping I'm posting to the right list from the Postgres page. I looked at several different ones, and this seemed to be the one most suited to this question. I'm using Postgresql version 6.3.1, and I'm trying to execute the following query: select make, model, price, yr, mileage, extcol, intcol, image from usedcars where (make='Ford' or make='Lincoln' ) and (model='Continental Executive' ); First results: make|model|price|yr|mileage|extcol|intcol|image ----+-----+-----+--+-------+------+------+----- (0 rows) Next query: select make, model, price, yr, mileage, extcol, intcol, image from usedcars where (make='Lincoln' or make='Ford') and (model='Continental Executive') ; Results: make |model |price| yr|mileage|extcol|intcol |image -------+---------------------+-----+----+-------+------+------------+----- Lincoln|Continental Executive|12000|1993| 69000|blue |blue leather| (1 row) I thought these two queries were logically identical, so I don't quite understand the differing results. Finally, one more query. I repeat the first query, and: select make, model, price, yr, mileage, extcol, intcol, image from usedcars where (make='Ford' or make='Lincoln') and (model='Continental Executive') ; make |model |price| yr|mileage|extcol|intcol |image -------+---------------------+-----+----+-------+------+------------+----- Lincoln|Continental Executive|12000|1993| 69000|blue |blue leather| (1 row) Surprise!!! Would anybody be able to offer me a clue on this behavior?? I'm pretty stumped. TIA... eric -- *********************************************************** Eric McKeown ericm@palaver.net Palaver http://www.palaver.net 332 N. Market St. Phone: (219) 253-8131 Monon, IN 47959 Fax: (219) 253-6800 ***********************************************************