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)
 Parent and Child tables - parent complex

Author  Topic 

sotian
Starting Member

8 Posts

Posted - 2007-05-01 : 03:59:33
Hello,

I have a complex query that returns a few thousand rows in around 15 seconds to .NET, which I am happy about, however I now need to return a second table that relates to the first table, but I don't want to rerun the first query. A Temporary table would do the job, ie run main query into temporary table, return temporary table, then do a join on temporary table with the child table, and return that. Is there a better solution?

Thanks,
Jon

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-05-01 : 08:51:32
Impossible to guess without seeing any specifics at all. Who knows?



- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page
   

- Advertisement -