Viewing 15 posts - 391 through 405 (of 479 total)
The usual problem is trying to follow part 1 of rule #2 (follow users' orders) while only bending rule #1 (i.e. a slight performance impact) when you'd really like to...
April 15, 2008 at 5:23 am
I would never rely on a trick based on a particular feature of the data which wasn't relevant to the selection. In my opinion, this is extremely bad practice.
As written,...
April 15, 2008 at 3:44 am
Peso (2)
create table #t (id int not null, st char(1) not null, date datetime not null, seq int null)
--
--.... main fill omitted
--
DECLARE@Seq INT,
@Yak INT,
@st CHAR(1)
SET@Seq = -1
UPDATE#t
SET@Seq = @Seq +...
April 14, 2008 at 7:57 am
Both Jeff's and Peso's queries do not eliminate pairs where the status stays the same. Additionally, as Peso pointed out, Jeff didn't remove the 'pairs' where the ids don't match....
April 14, 2008 at 7:37 am
Hi Gsquared,
Thanks for the hint.
I tried implementing your use of dense_rank instead of row_number and located an omission in my code. In my version 2, CTE t4 should have group...
April 12, 2008 at 3:08 am
GSquared (4/11/2008)
Here's the query I wrote, based on the description you gave in the original post:
;with...
April 12, 2008 at 2:14 am
Glen (4/11/2008)
April 12, 2008 at 1:25 am
GSquared (4/11/2008)
I could probably help, if you provide the table structure, including indexes, some sample data, and the query you're using.
Did you read the script? I thought I put everything...
April 11, 2008 at 9:04 am
I got this right and have, in the past, upgraded a trial Exchange Server to full version, so I know it works for some MS software and assumed it would...
April 10, 2008 at 2:54 am
Matt Miller (4/9/2008)
April 9, 2008 at 10:23 am
GSquared (4/8/2008)
April 9, 2008 at 8:33 am
Ziljan4 (4/6/2008)
Micorsoft SQL Server 2005 SP3 will be available pretty soon.
Is this just wishful thinking or do you know something?
April 9, 2008 at 8:18 am
srienstr (4/4/2008)
Derek Dongray (4/4/2008)
No, there is only one type of person in the world: those who count.Except of course for Democrat primary voters in MI and FL. :hehe:
The joke was...
April 9, 2008 at 8:15 am
I haven't used Vista yet, except for a brief trial, but am quite happy with XP, so won't be changing soon.
On the matter of Consistency. Since Microsoft control the specification...
April 8, 2008 at 7:07 am
srienstr (4/4/2008)
Shaun McGuile (4/4/2008)
How is that funny?
Is that not the truth? 😉
Like the one told to me by an accountant;
"There are three types of accountant in this world,...
April 4, 2008 at 9:28 am
Viewing 15 posts - 391 through 405 (of 479 total)