I have a table with several fields and my goal is to bring only the id that appear only once and whose fields 3 and 4 are not null (any of them)
The query you make is the following
SELECT id
FROM tabla
WHERE campo3 IS NOT NULL
OR campo 4 IS NOT NULL
GROUP BY id
HAVING count(id) = 1
But it brings me a list of id where I try and appear more than once.