select items based on 2 columns

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: select items based on 2 columns
Date: 2022-08-08 08:24:14
Message-ID: CA+i5JwYCPBDcenq_godJqtjApLyOeJHxo-Joova3wrAYtM6QOA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

The following is the type of data:

id id_b in out
51 57 false false
51 42 true false
51 32 false false
51 76 false true
51 49 true false

How to do the following:

select id from tbl if in is true and out is true are found?

Regards,

David

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Frank Streitzig 2022-08-08 09:32:17 Re: select items based on 2 columns
Previous Message Tom Lane 2022-08-07 23:31:41 Re: Possible bug (or at least unexpected behavior)