Viewing 8 posts - 1 through 8 (of 8 total)
Thanks again!
April 25, 2014 at 10:47 am
thanks so much .. it works perfectly!! Can you tell me, could the same thing be accomplished using a View instead of the CTE and then adding the Group by...
April 25, 2014 at 10:37 am
I think I have it working with the modified version below
WITH Summary (site_number, site_name, entity_equipment_name, timestamp, ActiveSetpoint, ZoneTemp)
AS
(
SELECT s.site_number, s.site_name, e.entity_equipment_name, DATEADD(MINUTE, DATEDIFF(MINUTE, 0, h.timestamp),0 ), (select numeric_value...
April 25, 2014 at 9:04 am
Thanks for the reply!
When I add the Group By I get the following error?
"Each GROUP BY expression must contain at least one column that is not an outer reference."
Ideas?
April 25, 2014 at 8:12 am
Grant Fritchey (3/24/2014)
Nope. I keep getting errors in the XML when I try to open it. Did you edit the plan?
No, I just created the plan and saved it. Should...
March 24, 2014 at 11:46 am
Ok .. try this one. If this doesnt work, then I will just for the Actual Execution Plan and post later.
March 24, 2014 at 11:07 am
I am still running the query, its at 45min+ :-D.
I wanted to try the suggested index, but there is already one on the table very similar and our other...
March 24, 2014 at 11:02 am
Thanks for the quick replies guys! Sorry for confusion, I havent posted a question here before and wasnt entirely sure what you would though am not surprised to hear you...
March 24, 2014 at 10:31 am
Viewing 8 posts - 1 through 8 (of 8 total)