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!

Compare two tables which have null and junk data columns in where clause

user12249378Oct 22 2013 — edited Oct 24 2013

Table A:

col1col2col3col4col5col6

ANY

NULL

NULL

YES

YES

YES

NULL

NULL

YES

NULL

YES

YES

NULL

ANY

YES

ANY

NULL

YES

NULL

NULL

ANY

YES

YES

YES

Table B:

col1col2col3col4col5col6

ANY

NULL

NULL

YES

ANY

YES

ANY

NULL

YES

NULL

YES

YES

NULL

ANY

YES

NULL

NULL

YES

ANY

NULL

ANY

YES

YES

NULL

column values are

Yes:  Value present

No:    Null

Any : Junk

Need to match all the columns from TableA to TableB.

TableA.col1 to TableB.col1

.

.

.

TableA.col6 to TableB.col6

Any help is much appreciated

Thanks,

This post has been answered by Reuben Co on Oct 24 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2013
Added on Oct 22 2013
22 comments
1,653 views