Viewing 15 posts - 91 through 105 (of 303 total)
Thomas (4/27/2009)
April 27, 2009 at 9:07 am
bruce.trimpop (4/24/2009)
April 24, 2009 at 11:00 am
RBarryYoung (4/21/2009)
Goldie Graber (4/21/2009)
Also, Barry, would you be able to explain your query?
Sorry Goldie, not trying to be evasive but my brain isn't at 100% right now and this technique...
April 22, 2009 at 8:07 am
Lynn Pettis (4/21/2009)
Goldie Graber (4/21/2009)
Bevan keighley (4/21/2009)
Hi Goldie,Do you have an index on UserID?
Yes, Non-Unique, Non-Clustered.
That is the problem. For the "quirky update" to work you need a clustered...
April 22, 2009 at 7:53 am
Bevan keighley (4/21/2009)
Hi Goldie,Do you have an index on UserID?
Yes, Non-Unique, Non-Clustered.
April 21, 2009 at 8:44 pm
Lynn Pettis (4/21/2009)
I'm not sure why it isn't working for you. I run the above code as is and it works correctly with the test data.
Can you post the...
April 21, 2009 at 8:42 pm
James.N (4/21/2009)
Waht am I trying to accomplish , with the code I posted ?
First I am updating the Rows that are common in both TestD(Destination)...
April 21, 2009 at 5:43 pm
Lynn: I can't get your solution to work correctly. GroupCounter is always 1 on my live data. I can't understand it.
Barry: As I suspected, it looks like your solution out-performs...
April 21, 2009 at 3:49 pm
James.N (4/21/2009)
and this code is working fine with out any issues.
UPDATE D...
April 21, 2009 at 3:39 pm
James.N (4/21/2009)
"UPDATE TestD
SET TestD.cola=testS.col1,
TestD.colb=testS.col2
...
April 21, 2009 at 3:02 pm
kylemwhite (4/20/2009)
April 21, 2009 at 7:45 am
RBarryYoung (4/20/2009)
SELECT Distinct UserID
From (
SELECT *
, ROW_NUMBER() Over(partition by UserId, Comment, CmtTypeGrp order by CheckInID) as GrpCnt
From (
SELECT CheckInID
, UserID
, comment
,...
April 20, 2009 at 10:10 pm
Jeffrey Williams (4/20/2009)
Based upon your sample data - you don't have a primary key. The examples given here don't include a primary key definition.
My bad. Here's the same table...
April 20, 2009 at 9:57 pm
Lynn Pettis (4/20/2009)
April 20, 2009 at 9:41 pm
Jeffrey Williams (4/20/2009)
April 20, 2009 at 9:34 pm
Viewing 15 posts - 91 through 105 (of 303 total)