Question | Option -----------|------------ 21285 |88232 21285 |0 21285 |88234 21285 |0 21286 |88239 21287 |88250 21287 |88252 21287 |88255
WHERE
SELECT Question, Option FROM MyQuestions WHERE Option<>0 --required filter here ORDER BY Question
DELETE FROM MyTable WHERE Question IN (SELECT DISTINCT Question FROM MyTable WHERE [Option] = 0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)