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:
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
Post a Comment