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

Dig deeper on Microsoft SQL Server Installation

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close