Instead of IN use EXISTS
select * from table1 where exists(select 'x' from table2 where
table1.col1=table2.col1);
regards
anandkl
|
Results 1 to 6 of 6
Thread: Which is better join or in?Threaded View
|
Click Here to Expand Forum to Full Width |