Skip to content

Instantly share code, notes, and snippets.

@dmcghan
Created October 17, 2018 16:08
Show Gist options
  • Save dmcghan/5e5b8dd75a5b407d8077f3c8ce1819a5 to your computer and use it in GitHub Desktop.
Save dmcghan/5e5b8dd75a5b407d8077f3c8ce1819a5 to your computer and use it in GitHub Desktop.
select d.deptno, d.dname, e.ename, dc.country
from emp e
full join dept d
on e.deptno = d.deptno
left join dept_country dc
on e.deptno = dc.deptno
order by d.deptno, d.dname, e.ename;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment