dbTalk Databases Forums  

Assistance needed with query

comp.database.oracle comp.database.oracle


Discuss Assistance needed with query in the comp.database.oracle forum.



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

Default Assistance needed with query - 07-15-2005 , 01:13 PM






Hi,

We have the following query:
SELECT w.WELLS_PK, w.WELL_ID, w.PLATE_FK, w.SAMPLE_FK, w.REACTION_FK,
wam.WELLS_AMPLICON_MAP_PK, a.AMPLICON_PK FROM CL_WELLS w,
CL_WELLS_AMPLICON_MAP wam, CL_AMPLICON a WHERE
w.WELLS_PK=wam.WELLS_FK(+) AND wam.AMPLICON_FK=a.AMPLICON_PK(+) AND
w.PLATE_FK=300052 ORDER BY w.WELLS_PK

This thing takes (IMHO) waaaaaay to long.

I know next to nothing about oracle, although Im pretty familiar with
mysql. How can I optimize this query? Does sql+ have some sort of
'explain' function?

Any help is appreciated!

Bryan

Reply With Quote
  #2  
Old   
Matthias Hoys
 
Posts: n/a

Default Re: Assistance needed with query - 07-15-2005 , 01:51 PM







"BCC" <bcc (AT) abcz (DOT) com> wrote

Quote:
Hi,

We have the following query:
SELECT w.WELLS_PK, w.WELL_ID, w.PLATE_FK, w.SAMPLE_FK, w.REACTION_FK,
wam.WELLS_AMPLICON_MAP_PK, a.AMPLICON_PK FROM CL_WELLS w,
CL_WELLS_AMPLICON_MAP wam, CL_AMPLICON a WHERE w.WELLS_PK=wam.WELLS_FK(+)
AND wam.AMPLICON_FK=a.AMPLICON_PK(+) AND w.PLATE_FK=300052 ORDER BY
w.WELLS_PK

This thing takes (IMHO) waaaaaay to long.

I know next to nothing about oracle, although Im pretty familiar with
mysql. How can I optimize this query? Does sql+ have some sort of
'explain' function?

Any help is appreciated!

Bryan
Hi,
Is this for Oracle 9i ? This might help :
http://download-west.oracle.com/docs...ppdev.htm#5855


Matthias




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.