i am trying to do as below its giving syntax error please help
DELETE FROM table
WHERE col1 = 2
AND EXISTS (
SELECT COUNT(*)
FROM table
WHERE col1 = 3
) > 2 ;
i need to do a delete only if the cout is greater than 2