Q

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

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close