I have a table with 700 rows looking like this:
Among all 700 rows, I want to remove 8 rows (highlighted). I've tried everything I could but nothing seems to work.
For example I tried:
SELECT *
FROM xx.yy.zz
WHERE column1 NOT IN (
SELECT column1
FROM xx.yy.zz
WHERE column1 IN ('2 - K','3 - K','19-1 - K','33 - K') AND column2 = 2020)
AND column1 NOT IN (
SELECT column1
FROM xx.yy.zz
WHERE column1 IN ('304 - K','303 - K','2 - K','3 - K') AND column2 = 2021)
But it seems it takes out more rows then it should. What am I doing wrong?


