The fan trap can be resolved by changing the many-to-one relationship between _ _ _ _ _ _ _ _ _ and _ _ _ _ _ _ _ _ _ into a many-to-one relationship between _ _ _ _ _ _ _ _ _ and _ _ _ _ _ _ _ _ _ .
"depno BETWEEN 3 AND 5" | "depno > 2 AND depno < 6" |
"depno IN (1,2,3)" | "depno = 1 OR depno =2 OR depno =3" |
"depno > ANY (1,2,3)" | "depno = 1 AND depno =2 AND depno =3" |
"depno > ANY (SELECT depno FROM department)" | "depno > (SELECT MIN(depno) FROM department)" |
"depno >= ALL (SELECT depno FROM department)" | "depno >= (SELECT MAX(depno) FROM department)" |