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!

Validation procedure to check for columns not null in a table if satifies "not null" then no need to

3648470Feb 28 2018 — edited Mar 1 2018

I have a emp table in which i have a do a validation check after loading data into table.

Emp Table:-

eid int,

ename varchar,

desig varchar,

sal number,

validation_error varchar

for Example after imporing/loading data if i have eid not null, ename not null,  desig not null, sal not null, then it should log the error into the validation error column...

o/p:-

empid,   ename   desig    sal        validation_error

1             -             IT        2000     Ename should not be null
2             -             -         4000      Ename should not be null | desig should not be null
3               -             -          -          Ename should not be null | desig should not be null | sal should not be null
-             -              -          -            Empid should not be null | Ename should not be null | desig should not be null | sal should not be null

As am learning sql on my own, am unable to get it.pls help. thanks.

This post has been answered by Hans Steijntjes on Feb 28 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2018
Added on Feb 28 2018
20 comments
1,985 views