Viewing 15 posts - 2,641 through 2,655 (of 5,590 total)
Craig Farrell (11/1/2010)
jamesniesewand (11/1/2010)
November 1, 2010 at 12:53 pm
Craig Farrell (11/1/2010)
November 1, 2010 at 12:51 pm
jamesniesewand (11/1/2010)
Hi Wayne,That's exactly what I suspected I was missing - and thank you muchly for your reply.
Great, I'm glad it's working right. Thanks for posting the DML/DDL to produce...
November 1, 2010 at 12:42 pm
T3mplarKn1ght (11/1/2010)
In the sample data I've left out some of the extraneous data.
Please go back to the link that Craig pointed you to, and read that article (it's the same...
November 1, 2010 at 12:21 pm
And what happens if the bottom 5 people have the worse wage, and what you want is the 6th person (2nd lowest wage)? You might want to use the RANK()...
November 1, 2010 at 12:15 pm
;WITH CTE AS
(
SELECT t.ExampleTableID,
t.ExampleProduct,
t.ExampleValue,
RN = RANK() OVER (PARTITION BY...
November 1, 2010 at 12:03 pm
I see no reason why your variables in the c.u.r.s.o.r. are not being updated - would you mind posting the entire procedure for us to look at?
Also, if you can...
November 1, 2010 at 10:53 am
mbender (11/1/2010)
awesome I will take a look at this. Thank you very much, this is exactly why i come to this site.Thanks for all your help!
I'm glad that I...
November 1, 2010 at 10:48 am
If you can use freeware, http://www.ssmstoolspack.com has this feature.
November 1, 2010 at 9:30 am
declare @field varchar(5);
set @field = 'class';
declare @sqlcmd varchar(max);
SET @sqlcmd = '
SELECT ' + @field + ' = STUFF((SELECT '','' + ' + @field + '
...
November 1, 2010 at 8:39 am
GilaMonster (10/31/2010)
Just noticed that I missed spotting a milestone. Better (a little) late than never
Congratulations Gail!
October 31, 2010 at 8:03 pm
It still has to be declared before it is referenced... if you move the if/declare block to the end of the code, it does generate an error.
October 31, 2010 at 12:38 am
Jeff - what do you mean by "overlapping" dates, and how does this differ from determining gaps/islands?
(If it's different, we probably ought to add one for each of those.)
October 30, 2010 at 10:34 pm
WayneS (10/28/2010)
Jeff Moden (10/28/2010)
October 30, 2010 at 10:23 pm
Jeff Moden (10/30/2010)
Kevin Bullen (10/30/2010)
In reviewing code written by a contractor, they declare a table variable inside a cursor, but it is never used. The cursor...
October 30, 2010 at 7:18 pm
Viewing 15 posts - 2,641 through 2,655 (of 5,590 total)