Ask the Expert

Translating a specific Oracle SELECT statement

How can I write the SELECT statement, which in Oracle is like:
 select * from table1 where table1.field1,table1.field2 IN (select table2.field1,table2.field2 from table2)

    Requires Free Membership to View

That is simple ANSI 92 syntax as below.

 select table1.* from table1 inner join table2 on table1.field1 = table2.field1 and table1.field2 = table2.field2

 

For More Information

This was first published in August 2002

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.