What is the difference between the EXISTS and IN clause in SQL?
EXISTS
IN
When should we use EXISTS, and when should we use IN
If you are using the IN operator, the SQL engine will scan all records fetched from the inner query. On the other hand if we are using EXISTS, the SQL engine will stop the scanning process as soon as it found a match.