The Exists
keyword evaluates true or false, but IN
keyword compare all value in the corresponding sub query column.
Another one Select 1
can be use with Exists
command. Example:
SELECT * FROM Temp1 where exists(select 1 from Temp2 where conditions...)
But IN
is less efficient so Exists
faster.