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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: