I feel like this is probably going to turn out to be an extremely simple question, but I can't seem to figure it out.
I have two tables, structured the same, with three fields: ID, CriteriaA, CriteriaB. CriteriaA and CriteriaB are both booleans. There are some IDs that are only in table1, some that are only in table2, and some that are in both.
I want to combine the tables such that if one or both are true for any given ID, Criteria, the result is true in the resulting table, otherwise it is false.
Is there a simple way to do this? Also if it makes any difference, table1 and table2 are already SQL queries, and I'd prefer to do this all in one query.
Thanks in advance for any help!
I have two tables, structured the same, with three fields: ID, CriteriaA, CriteriaB. CriteriaA and CriteriaB are both booleans. There are some IDs that are only in table1, some that are only in table2, and some that are in both.
I want to combine the tables such that if one or both are true for any given ID, Criteria, the result is true in the resulting table, otherwise it is false.
Is there a simple way to do this? Also if it makes any difference, table1 and table2 are already SQL queries, and I'd prefer to do this all in one query.
Thanks in advance for any help!