sql server - Sql joining from two tables -


i have 2 tables same structure. want display non matching records both tables based on id, should displayed in same row below image:

enter image description here

there's little go on, maybe like:

select table1.id, table1.name [, table1.etc] table1 left join table2   on table1.id = table2.id table2.id null union  select table2.id, table2.name [, table2.etc] table2 left join table1   on table2.id = table1.id table1.id null 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -