troubleshooting Question

Query Needs Help with Performance

Avatar of Starr Duskk
Starr DuskkFlag for United States of America asked on
Microsoft SQL Server 2008
14 Comments2 Solutions263 ViewsLast Modified:
It took 4:29 to run this query on a client with a lot of employees and fruit. Too long. It doesn't take this long on a client with less employees and fruit.

Can you please look at it and tell me what I might do to improve it? I have indexes on all the where clauses and JOINs. I moved the LEFT OUTER JOINS together and to the bottom where I could. I have added keys where needed. I ran it through the "Display Estimated Execution Plan" and it did not make recommendations on any needed indexes.

Names have been changed to protect the Fruit.

Thank you!
Join our community to see this answer!
Unlock 2 Answers and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros