Database: cre_Students_Information_Systems
Question: Count the number of teachers who have taught students who have never won an achievement.
SQL:
SELECT count(DISTINCT T1.teacher_id) FROM Teachers AS T1 JOIN Classes AS T2 ON T1.teacher_id  =  T2.teacher_id WHERE T2.student_id NOT IN ( SELECT student_id FROM Achievements )