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 validations

Dev_caintegraApr 20 2015 — edited Apr 20 2015

Hi I kind of newbie in this stuff, I have a situation I'd like to be helped.

I have a table A with columns name, id, phone, etc.. I need to make validation for earch columns in order to prove tha the data exist in another table B with reference information, I need to do this in order to send the data from table A to a new table C.

For example, In table A in row 1 in the column name there is a "John" , column id "12345", column phone "0180012345". I need to check in column B if John exists, if it doesn´t exist then stop the next validations and display tha John doesn´t exist in Table B, When "John" be corrected, the first validation will be passed with no problem so the next validation can be released and it goes the same situation: check if the "123455" from table A exists in the ID column of Table B and if it doesn´t the stop the next validations and so on...The point is: I need to check that all data from table A exist in table B and they pass all the validations in order to be fill in the new table C.

I have the validations in separate ways, I know I need to create a package with all the validations, but I don´t know how to make a "break" in one validation and STOP the next validation and display all the records from the column that don´t comply with the validation.

I hope I can be supported with this matter.

John

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 18 2015
Added on Apr 20 2015
1 comment
353 views