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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

optimization tips

Status
Not open for further replies.

sap1958

Technical User
Joined
Oct 22, 2009
Messages
138
Location
US
Lets say I have a query like this:
select name,nameplural,address,schoolName
from name_table with(nolock)
left outer join address_table on
addrid=nameid
left outer join school_table with(nolock)
on schlid=nameid

I am pulling data from 3 large tables.(name,address and school)

Any ideas on optimization (ie I am hitting three different large tables). I ask because when I put this into a crystal format, it takes forever to compile.
 
Are you joining on indexed columns? Without a where clause, This may return a lot of rows, which probably will take a long time.

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
No I am not. Is it really an involved process to use indexed columms
 
And what your "Actual Execution Plan" show you, if you run that query?

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top