Je kunt het hieronder proberen - je moet subquery gebruiken voor inner select statement
DELETE FROM test WHERE ext_no IN
(
select ext_no from
(
SELECT ext_no, MAX(value)
FROM test
GROUP BY ext_no
HAVING COUNT(*) > 2 AND
COUNT(*) = COUNT(CASE value WHEN 0 THEN 1 END)
)t)