Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Data validation from a staging table

edy12Mar 19 2014 — edited Mar 19 2014

Hi guys need urgent help for following problem.

I have 2 tables emp1(ename,empno,job,mgr,hiredate,sal,comm,deptno)

and dept1(deptno,dname,loc), i filled some data into following staging table

emp_validate_staging(empno,ename,deptno,dname,status) which has both correct and incorrect data.

Now i have t write a package which validates the data given in the staging table(Eg- the following data exists/not exists in emp1/dept1 table, use seperate blocks for seperate tables) and update the status in the staging table with 'W','R'. if the status is 'R' then insert that data into another table emp_valid_transaction or else should throw an exception.

Basically i am not able to validate the data so please help me with this

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2014
Added on Mar 19 2014
6 comments
852 views