Retrieve rows that have specific value in any of columns. - Mailing list pgsql-admin

From Lukasz Brodziak
Subject Retrieve rows that have specific value in any of columns.
Date
Msg-id CAGWYGjUJRvjMEJ7KXu17v9qu7hvZ=-JgyqQHXp9a=0_EPjfYJQ@mail.gmail.com
Whole thread Raw
Responses Re: Retrieve rows that have specific value in any of columns.
List pgsql-admin
Hello,


I have a table which contains 5 columns the last 3 indicate wether the
employer worked with given project or not. The values are simply Yes
and No. What I need is a list of people who haven't worked in at least
one project.
So for example we have data:

John Smith Yes No Yes
Tim Robins No  No Yes
Joe Bar      Yes Yes Yes
Ben Finch  Yes No No

So the SQL statement should retrieve: Finch,Robins and Smith.


pgsql-admin by date:

Previous
From: Christian Ullrich
Date:
Subject: Re: Request for help
Next
From: Albe Laurenz
Date:
Subject: Re: Retrieve rows that have specific value in any of columns.