Q
Problem solve Get help with specific problems with your technologies, process and projects.

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)

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 last published in August 2002

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close