• If you were to share the DDL for the table (or an example) and the conditions you want it would it easier to help you out.

    Michal has shared one possible solution for one interpretation of your question. I'd do something like this:

    Select col1, col2 from table1 where col3 = 1 or col4 = 1;

    I actually interpreted your question to mean that for one condition you wanted to return one column and for another condition a different column like this:

    Select CASE WHEN col3 = 1 then col1 ELSE col2 END as returnedData FROM table 1;