My question is very simple but I cannot get my head around
my statement:
SELECT *
FROM table 1
WHERE (row1 = 0 AND row2 > 0)
OR (row3 is NULL AND row4 > 0)
This gives me a selection of rows that is correct for one option.
What I want is making a selection of all rows where the where clause is not true in total
SELECT *
FROM table 1
WHERE NOT((row1 = 0 AND row2 > 0)
OR (row3 is NULL AND row4 > 0))
what is wrong is
SELECT *
FROM table 1
WHERE (row1 > 0 AND row2 = 0)
OR (row3 is NOT NULL AND row4 = 0)