Viewing 8 posts - 1 through 9 (of 9 total)
LutzM (7/16/2010)
July 16, 2010 at 11:29 am
I'm sorry I misunderstood you.
I ran your 2nd example.
First Version runs in 3 seconds.
Second Version runs in 15 seconds.
Both examples provide the same results.
Again I thank...
July 16, 2010 at 10:19 am
That code i posted above ran in 13 seconds. i switched it to a temp table instead of a Table variable and it now runs in 3 seconds.
July 16, 2010 at 9:09 am
Here is what i have so far. I changed a few of the field names. Other than that it's exactly what i have. I had to add...
July 16, 2010 at 9:01 am
I did not consider to normalize and properly index your tblResults table. I'll have to look up tomorrow on how to do that. I'll also submit the full...
July 15, 2010 at 4:06 pm
@ Joe Celko:
Thank you for your post as well. It's not a huge table, but can take awhile to process especially when calls from the web are involved. ...
July 15, 2010 at 3:24 pm
@LutzM Thank you so much. I think this will get me where i need to go.
This was exactly what I was needing. I modified it...
July 15, 2010 at 3:18 pm
Thanks for the advice. Here are the Creates. I took columns out of the tblResults but it's the same idea, for 30 or more data elements.
CREATE TABLE [dbo].[overall_avgs](
[system_id]...
July 15, 2010 at 8:20 am
Viewing 8 posts - 1 through 9 (of 9 total)