The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Pathi.
Asked: July 22, 2022 - 1:19 pm UTC
Last updated: November 30, 2022 - 5:38 am UTC
Version: 18.2
Viewed 1000+ times
SQL> create table t1 as select empno, ename, sal from scott.emp; Table created. SQL> create table t2 as select empno, ename, sal from scott.emp; Table created. SQL> SQL> delete from t1 where rownum = 1; 1 row deleted. SQL> insert into t2 (empno,ename) values ( 1000,'Connor'); 1 row created. SQL> SQL> select * 2 from t1 full outer join t2 3 on ( t1.empno = t2.empno ); EMPNO ENAME SAL EMPNO ENAME SAL ---------- ---------- ---------- ---------- ---------- ---------- 7369 SMITH 800 7499 ALLEN 1600 7499 ALLEN 1600 7521 WARD 1250 7521 WARD 1250 7566 JONES 2975 7566 JONES 2975 7654 MARTIN 1250 7654 MARTIN 1250 7698 BLAKE 2850 7698 BLAKE 2850 7782 CLARK 2450 7782 CLARK 2450 7788 SCOTT 3000 7788 SCOTT 3000 7839 KING 5000 7839 KING 5000 7844 TURNER 1500 7844 TURNER 1500 7876 ADAMS 1100 7876 ADAMS 1100 7900 JAMES 950 7900 JAMES 950 7902 FORD 3000 7902 FORD 3000 7934 MILLER 1300 7934 MILLER 1300 1000 Connor 15 rows selected.
The Oracle documentation contains a complete SQL reference.