MERGE INTO dept d USING emp e ON (d.deptno = e.deptno) WHEN MATCHED THEN UPDATE SET d.name = e.ename, d.job = e.job, d.salary = e.salary, d.deptno = e.deptno WHEN NOT MATCHED THEN INSERT VALUES (e.ename, e.job, e.salary, e.deptno);
If you insert a row in a table, then create another table and then say Rollback. In this case will the row be inserted?
Do i need to write in PL/SQL or is it possible in SQL query?