Quantcast
Channel: When to use Merge and hash join
Viewing all articles
Browse latest Browse all 8

When to use Merge and hash join

$
0
0

just tell me when i should go for merge join hint ?

if we merge join those fields which has no cluster index then there will be benefit in terms of performance ?

My recommendation is to avoid hints optimizer chooses the best way to join the columns all you need to do is keep statistics updated. Anyways when you are joining two tables on columns which are sorted by key column or are part of clustered index which sorts col according to key value merge join is preferred. Please read 2nd article shared

Cheers,

Shashank

Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

My TechNet Wiki Articles

MVP

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>