Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Order

Status
Not open for further replies.

dbomrrsm

Programmer
Feb 20, 2004
1,709
GB
Webi 6.5

We have a number of queries that are performing rather slowly.

When we lloked at the sql the order in which the joins are done seems to have an effect on performance - a BO produced piece of sql ran in 1.20 minutes but with it rewritten withn ONLY the join order chaged it returns in 5 seconds.

Is there a way of determining the order in which the selected tables appear in the sql.

TIA

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
If you use ORACLE then do a search here on the topic
'reverse table weight'.
I recall giving an answer to a similar question, but yours may be more generic...

Ties Blom

 
Ties

Thanks for the input but your search criteria returned no results in this forum.

We do indeed use Oracle so your previous answer will probably be very useful if you can point me at it.

Thanks

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Cheers

[bandito] [blue]DBomrrsm[/blue] [bandito]

[blue]Software code, like laws and sausages, should never be examined in production[/blue][black] - [/black][purple]Edward Tenner[/purple]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top