Additional SQL Server features and topics not covered by specific categories
Hi @arkiboys
which select to use
We do not know your tables or what result you want.
If both of them return same result, then why not test by yourself?
I could only give you some theoretical suggestions, like:
- Avoid too many OR conditions. Try to rewrite where clause by removing unnecessary conditions or changing to use a function such as case or decode.
- Find out any possible to change from hash join to EXISTS.
- Check the execution plan and see if any chance to improve.
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.