I have two SQL Tables, which both have three columns
Normal
val_one, val_two, bool_val
1, 2, False
3, 4, False
Temp
val_one, val_two, bool_val
1, 2, True
I have a SQL statement that can select all of the rows from one that don't exist in the other table.
"SELECT val_one, val_two, bool_val FROM temp EXCEPT SELECT val_one, val_two, bool_val FROM normal;"
However, this has the problem that it also returns rows with different bool values, which is not what I want. So if I query, I only want to get back rows with different (val_one, val_two) values
In this example, my query would ideally return only
3, 4, False
How can I modify the current statement to do this?