It seems when I run the query with the set staticts IO on then statistic reports back with the 'work table', and the query takes 30+ sec. if the...
The hardware can help but the aggregation like sum seems to not use the cache. I created temporary table and used that as my bases for the query and...
Separate names with a comma.