How can we logically AND-connect two boolean columns in SQL in the select clause?
Pseudo-SQL of what I have in mind:
select boolean_col_A AND boolean_col_B as joint_bool from foo where id = 42
Note that I am not limiting the number of records through a boolean predicate but rather create a "synthetic" i.e. surrogate column in the result set.
I feel there must be a simple way to achieve this but I'm not seeing it. It should work for Oracle, Postgres and H2.