dbTalk Databases Forums  

[help] subquery vs outer join

comp.database.oracle comp.database.oracle


Discuss [help] subquery vs outer join in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
News.netvigator
 
Posts: n/a

Default [help] subquery vs outer join - 04-24-2008 , 11:25 AM






Table name: table_a, table_b
size of both tables: ~500M


case 1)
select a.feld1, b.field1 from table_a a, table_b b where a.field1 =
b.field1 (+)

case 2)
select a.field1,
(select field1 from table_b where field1 = a.field1) col
from
table_a a


Two cases will return same results but the response time of case 2 is much
faster than case 1 as I really don't understand why? Also what does Oracle
actually do on both case?
pls help, thanks.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.