Why we use option (merge join). But using this my sql query response very fast.
can anyone explain in simple words.???
Use of option (merge join)
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 4, 2013, 3:48 AM EDT
hi,
The merge join used to generate data from two sorted data set using inner, lert and full join. here joined columns must have match data type with each other i.e. we cannot join numeric data type with charater data type column.
merge join ifself very fast, it can be expensive choice if sort operations are required.
Please refer
http://technet.microsoft.com/en-us/library/ms190967(v=sql.105).aspx
http://gullimeelsqlsybase.wordpress.com/2012/06/26/improved-merge-join-algorithm-in-sql-server-2008/
hope this will help you.