How to join 2 views in mysql? -
this question has answer here:
- how full outer join in mysql? 12 answers
i have 2 views columns,
view1 = (id, number) view2 = (id, number, name)
how create select display such that
display = (id, number, name)
and display full outer join view1 , view2.
select view2.* view1 left join view 2 on view1.id = view2.id union select view2.* view1 right join view 2 on view1.id = view2.id
Comments
Post a Comment