The New Home of Oracle-wiki.net

All things oracle...

A website for IT Professionals involved with Oracle database.

LinkLinkedIn

Sort Merge Joins

What is a Sort-Merge-Join

A sort-merge join is one of the join methods used by the Oracle optimizer to combine rows from two tables based on a join condition. It is particularly efficient when both inputs to the join are sorted on the join key, either inherently or through sorting during query execution. 


How Does a Sort-Merge-Join Work

The process involves two main steps



When Does Oracle Choose a Sort-Merge-Join

Oracle chooses a sort-merge-join in scenarios such as, although not limited to, the following


Advantages of a Sort-Merge-Join

The following are some of the advantages of sort-merge-join


Disadvantages of a Sort-Merge-Join

The following are some of the disadvantages of sort-merge-join


Comparisons with Other Joins



Published on 

Published 26th November 2024