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!

Matching a set of data from one table to another

430487Jun 17 2009 — edited Jun 17 2009
I have a table - Table_1 with columns A, B, C, D. I have another table (Table_2) with columns B, C, D.

I'm trying to get all the rows from Table_1 where the values match for columns B, C, D.

The catch here is that the rows returned from TABLE_1 should be the same number of rows as in TABLE_2 and the value in TABLE_1 of "A" should be the same for all those rows. So - Table_1 could return multiple sets of matching data where the VALUE for A differs for each SET but - the "SET" should match all the other values in TABLE_2 exactly (including number of rows for each set)...

Any help is greatly appreciated. Hopefully I've stated the above clearly enough.
This post has been answered by ow005731 on Jun 17 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2009
Added on Jun 17 2009
8 comments
533 views