Viewing 15 posts - 181 through 195 (of 471 total)
Interesting question which provoked a good discussion.
December 13, 2011 at 8:50 am
Ninja's_RGR'us (12/8/2011)
Make sure to put them all on auto close & autoshrink.
Then start foreachdb and check stuff in them :hehe:
I like where this is headed.
December 8, 2011 at 1:51 pm
ma-516002 (12/7/2011)
Great question, but the answer is language dependant since outside the us at first glance '01-08-2011' reads 1st of August 😉
Yes, this is a lesson we learn quite quickly...
December 7, 2011 at 8:12 am
Jpotucek (11/18/2011)
Thank you one and all.. time to put on my Quincy lab coat and go do some investigating on 'cte's 😀
I remember Quincy, but I...
November 18, 2011 at 12:32 pm
SKYBVI (11/18/2011)
Cliff Jones (11/18/2011)
SKYBVI (11/18/2011)
;WITH cteAS (SELECT ROW_NUMBER() OVER (PARTITION BY Col1, Col2
--add all column names col1,col2,...
ORDER BY ( SELECT 0)) RN
FROM table)
DELETE FROM cte
WHERE RN > 1
Regards,
Sushant
Yes Sushant, I...
November 18, 2011 at 12:27 pm
Jpotucek (11/18/2011)
Thank you!!!
I ran this and it worked:
;WITH cte
AS (SELECT ROW_NUMBER() OVER (PARTITION BY path, sortOrder,id, repname, repfilepath, language_cd, updateddate, repFormat
--add all column names col1,col2,...
ORDER BY ( SELECT 0)) RN
FROM...
November 18, 2011 at 12:15 pm
Jpotucek (11/18/2011)
but I tried this:
Select * (SELECT ROW_NUMBER() OVER (PARTITION BY path, sortOrder,id, repname, repfilepath, language_cd, updateddate, repFormat
--add all column names col1,col2,...
ORDER...
November 18, 2011 at 12:13 pm
SKYBVI (11/18/2011)
;WITH cteAS (SELECT ROW_NUMBER() OVER (PARTITION BY Col1, Col2
--add all column names col1,col2,...
ORDER BY ( SELECT 0)) RN
FROM table)
DELETE FROM cte
WHERE RN > 1
Regards,
Sushant
Yes Sushant, I was just about...
November 18, 2011 at 12:07 pm
jeff.mason (11/9/2011)
November 9, 2011 at 9:41 am
mbova407 (11/2/2011)
Yeah... one point... now two with this post.
That's the spirit!
November 2, 2011 at 7:42 am
Great question and explanation. I answered a little too quickly.
October 27, 2011 at 7:35 am
Viewing 15 posts - 181 through 195 (of 471 total)