Viewing 15 posts - 7,891 through 7,905 (of 10,143 total)
david.woulds (5/20/2010)
datepart(month,getdate()) as I use this the get the FY start and end dates. I just need to incorporate...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 10:09 am
;WITH SequencedTable AS (
SELECT GroupID = ROW_NUMBER() OVER (PARTITION BY cRightID ORDER BY cDesc)
FROM dbo.SMRights)
DELETE FROM SequencedTable WHERE GroupID > 1
-- Note that the choice of sort column is up...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 10:07 am
Paul White NZ (5/20/2010)
Chris Morris-439714 (5/20/2010)
Paul White NZ (5/20/2010)
Dynamic SQL - versus - not very dynamic DBAs.Hey Chris, what's with the paint tin avatar?
Paint tin? :Whistling:
Yeah.
And congratulations.
Huh?:ermm:
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 10:02 am
John Rowan (5/20/2010)
sing4you (5/20/2010)
Not pregnant 😀Congrats! I'm happy for you too.
Oh John...I always thought you were one of us good guys...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 9:53 am
Paul White NZ (5/20/2010)
Dynamic SQL - versus - not very dynamic DBAs.Hey Chris, what's with the paint tin avatar?
Paint tin? :Whistling:
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 9:52 am
david.woulds (5/20/2010)
I used your suggestion re WHERE datepart(month,getdate()) >3 and the following code...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 9:49 am
dbowlin (5/20/2010)
Steve Jones - Editor (5/20/2010)
ChoresNever ending.
Good Lord! Lighten up, guys!
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 9:37 am
wmalik001 (5/20/2010)
But i am getting this error:
The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 9:35 am
Hi David
I've no idea whether or not BO would permit the use of variables, however, they will certainly assist you in creating and debugging a SQL statement - after which,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 9:11 am
Using @variables makes the code much easier to read - for the purposes of figuring out the problem, if nothing else. The same applies to using table aliases - 'p'...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 8:36 am
;WITH SequencedTable AS (
SELECT GroupID = ROW_NUMBER() OVER (PARTITION BY DuplicateColumn1, DuplicateColumn2, ...)
FROM dbo.SMRights)
DELETE FROM SequencedTable WHERE GroupID > 1
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 8:16 am
sing4you (5/20/2010)
Not pregnant 😀
Speak to Barry - he's got his modulus back 😀
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 7:16 am
Paul White NZ (5/20/2010)
Know-nothing lazy **** boneheads!!!!!!!!/vent
Sounds like the outlaws. Wassup Paul?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 5:29 am
RBarryYoung (5/19/2010)
Chris Morris-439714 (5/19/2010)
Young's modulusYes, and I'd appreciate your returning it too. 😛
:-D:-D
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 2:14 am
John Rowan (5/19/2010)
Chris Morris-439714 (5/19/2010)
PregnantContrats Chris! I'm happy for you.
Heh that would be a medical first! Sure would surprise 'er indoors too!
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
May 20, 2010 at 2:13 am
Viewing 15 posts - 7,891 through 7,905 (of 10,143 total)