Multiple '<>' on OR condition not working - Mailing list pgsql-novice

From Francisco Reyes
Subject Multiple '<>' on OR condition not working
Date
Msg-id 20011209141905.K32574-100000@zoraida.natserv.net
Whole thread Raw
List pgsql-novice
I have a query with the 'where' conditions as follows:
where he.horse = comp.horse and he.fd = comp.fd and
        (
        comp.cm_start           <> he.lstart    or
        comp.cm_win             <> he.lwin      or
        comp.cm_place           <> he.lplace    or
        comp.cm_show            <> he.lshow     or
        comp.cm_earnings        <> he.learnings
        )
and extract(year from lstat_date) >2000  and lstart < 20 limit 30;

The part that is not working is the series of 'or'. I have two tables for
which most records are the same; I looking for differences.

What I am getting from the query above is identical records matched (i.e.
horse,fd, start, win, place, show and earnings are the same).

Any suggestions?


pgsql-novice by date:

Previous
From: Francisco Reyes
Date:
Subject: Re: Disk space problem...
Next
From: Rasputin
Date:
Subject: securing Postgres