Lesson 10 Join Methods

  • A practical introduction to the join methods available to the Oracle9i cost-based optimizer.

    Choosing Join Plan

    CBO and Missing Stats

    Join Methods

    Nested Loops Join

    “New” Nested Loops

    Nested Loops Example

    Optimizer Mode

    ORDERED Hint

    USE_NL Hint

    Continuation of Notes

    Adding Selective Filters

    Outer Nested Loops

    Hash Joins…

    …Hash Joins

    Hash Join Process…

    …Hash Join Process

    Hash Join Example

    Hash versus Nested Loops

    USE_HASH Hint

    Hash Join Parameters

    Sort-Merge Join…

    …Sort-Merge Join

    Sort-Merge Example

    USE_MERGE Hints

    NOT IN Subquery: Anti-Joins

    Nested Loops Anti-Join

    Anti-Join Hints

    EXISTS Subquery: Semi-Joins

    Semi-Join Hints

    Cartesian Join

    Lesson Summary

    Join Methods Workshop