Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Nested query in select with many joins

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-10-20 : 07:58:32
Buba writes "I have the following problem
I run the query that consists of derived table (subquery) and about 5 tables

It takes me about 60 sec to get data.
But if i exclude derived table it takes only about 5 sec and if i only execute subquery it takes about 4 sec

Why do i get such a big difference? + If i put date from subquery into temp table and then join that temp table with my select it takes about 10 sec for everything.

So, I'm confused why my query and subquery don't work well together"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-10-20 : 08:07:15
Please post your query here. It's difficult to comment without looking at the query


KH

Go to Top of Page
   

- Advertisement -