• Jeff Moden (5/3/2014)


    I think a much better question would be, "What determines what will be the first (top) table (according to books online) in a hash match join"? 😉

    There's no reliable way to determine this. It should be the smaller input most of the time, but sometimes the optimizer doesn't get that one and that usually means the DBA's phone rings with a complaint.