Viewing 15 posts - 2,116 through 2,130 (of 5,504 total)
CELKO (1/13/2011)
My thought...
January 13, 2011 at 4:22 pm
Both versions will cause a table scan since the search condition is not SARGable.
Maybe it's more efficient to shred the data and query the new table with proper indexing.
It depends...
January 13, 2011 at 4:02 pm
Almost understood.
In your initial post you stated
My matrix needs to have the count of people that changed groups duing the month.
Referencing my previous post, how do you get G1...
January 13, 2011 at 3:54 pm
The temp table has been used to get a code block for demonstration purposes.
Assuming you're last statement will end with a semicolon, you could simply use
WITH CTE AS
(
SELECT *
...
January 13, 2011 at 3:44 pm
Just as a side note:
Resource Governor is available only on the Enterprise, Developer, and Evaluation editions of SQL Server (2008 and up).
January 13, 2011 at 3:38 pm
2. Any number of persons can join the various groups even if they don't currently belong to one
How would your expected output look like if all the changes for one...
January 13, 2011 at 3:21 pm
Expanding Waynes code:
DECLARE @test-2 TABLE (id INT, val VARCHAR(100));
INSERT INTO @test-2
SELECT 1,'jack,25,A67,91J,67,99' UNION ALL
SELECT 2,'jill,5,8,V3' UNION ALL
SELECT 3,'john,7,D4' UNION ALL
SELECT 4,'bill,66,84';
WITH CTE AS
(
SELECT *
FROM
...
January 13, 2011 at 2:17 pm
At the beginning of your post you said "based on a set of data"; but at the end "Any help in terms of what the table structure ... should look...
January 13, 2011 at 1:23 pm
WayneS (1/13/2011)
LutzM (1/13/2011)
Any of the Threadizens interested in a performance tuning project in the Los Angeles area? Drop me a PM.
You're in the LA area? I thought you were in...
January 13, 2011 at 12:57 pm
Any of the Threadizens interested in a performance tuning project in the Los Angeles area? Drop me a PM.
January 13, 2011 at 10:09 am
Jon.Wales (1/13/2011)
sorry my English is poor,I'm trying:-D
Do you have any question? You posted some code. Why?
January 13, 2011 at 9:32 am
I guess the issue is related to this thread.
But it could be something completely different, too...
January 12, 2011 at 3:01 pm
lduvall (1/12/2011)
I've been wanting to learn about the STUFF syntax, too. I'm going to dive into both of...
January 12, 2011 at 2:52 pm
I'm thrown by the fact that all these scenarios have something to sum and I don't have that.
Well, you DO have something to aggregate...
Attached please find tow code snippets:
the...
January 12, 2011 at 1:51 pm
Instead of using PIVOT I'd rather go with CrossTab and DynamicCrossTab, since the code structure of PIVOT is kinda weird and it doesn't perform better than the CrossTab methods either.
I'd...
January 12, 2011 at 12:26 pm
Viewing 15 posts - 2,116 through 2,130 (of 5,504 total)