select * from name1 left join name1 on name1.name=name2.name
select * from name1 left join name2 on name1.name=name2.name