How does the database handle this kind of join statement?

select * from table1 t1 left join table2 t2 on t1.id > t2.id;

for this kind of non-equal situation, do you want to take nested or Hash???

Mar.28,2021

merge join


this is sql server's, not MySQL's. If it is a large table, use hash join, medium and small tables, use merge join, if it is a small table, use nested join

Menu