Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KirillPashkov/4871a92ef7e34bed310747848b462886 to your computer and use it in GitHub Desktop.
Save KirillPashkov/4871a92ef7e34bed310747848b462886 to your computer and use it in GitHub Desktop.
select t1.c1, t2.c1 from t1 left join t2 on t1.c1=t2.c1
union all
select t1.c1, t2.c1 from t1 right join t2 on t1.c1=t2.c1
where t1.c1 is null
order by 1, 2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment