A will add to this an existing and additional query.
But performance depends on the optimizer of this SQL engine.
In oracle, you have a big difference between IN and EXISTS, but not required in SQL Server.
Another thing you should consider is the selectivity of the column you are using. In some cases, itโs better to show which is better.
But you must remember that IN does not have the right to (an argument without a search), so it will not use the index to resolve the request, LIKE and = are sargable and support the index
The best? You need to spend some time to test it in your environment.
source share