dbTalk Databases Forums  

SQL performance question

comp.database.oracle comp.database.oracle


Discuss SQL performance question in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aakash Bordia
 
Posts: n/a

Default SQL performance question - 09-23-2004 , 01:33 PM






Hi, which SQL query would perform better,(if there is any
performance/rewrite/compilation difference internally in Oracle at all):

select * from t1 left outer join t2 on t1.c1=t2.c1,t3

versus

select * from (select * from t1 left outer join t2 on t1.c1=t2.c1) as
t4(c1,c2,c3,c4), t3



Thanks

Aakash



Reply With Quote
  #2  
Old   
Alan
 
Posts: n/a

Default Re: SQL performance question - 09-24-2004 , 08:51 AM







"Aakash Bordia" <a_bordia_removethis (AT) hotmail (DOT) com> wrote

Quote:
Hi, which SQL query would perform better,(if there is any
performance/rewrite/compilation difference internally in Oracle at all):

select * from t1 left outer join t2 on t1.c1=t2.c1,t3

versus

select * from (select * from t1 left outer join t2 on t1.c1=t2.c1) as
t4(c1,c2,c3,c4), t3



Thanks

Aakash


Why don't you try it and see?




Reply With Quote
  #3  
Old   
Arangaperumal
 
Posts: n/a

Default Re: SQL performance question - 09-27-2004 , 12:06 AM



TKPROF is the better to findout this.
Either use this or post the out to find out

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.