Viewing 15 posts - 2,281 through 2,295 (of 10,143 total)
WHERE StateCodeName = 'Open'
AND SalesStageCode IN (
1,/* DISCOVERY */
121370000, /* PROPOSAL */
121370001, /* SIGN AGREEMENT */
121370002/* INSTALLATION */
)
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
August 12, 2015 at 8:44 am
azdeji (8/11/2015)
Hi ChrisM,Your solution is perfect but it changes the case from lower / title to upper case can this be corrected to keep the original case?
Thanks
Sure. Sub in either...
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
August 11, 2015 at 10:08 am
Some links here.
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
August 11, 2015 at 9:52 am
nadersam (8/11/2015)
I was able to write the attached function but it doesn't work if...
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
August 11, 2015 at 9:48 am
Luis Cazares (8/11/2015)
Am I late to the party? I was on a meeting.Should I open the bottles of champagne? Who's in charge of the BBQ? :hehe:
Merry Christmas! Have I missed...
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
August 11, 2015 at 7:15 am
Koen Verbeeck (8/11/2015)
Only 10 posts to go...
and you're reached the corner of the field.
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
August 11, 2015 at 6:22 am
djj (8/11/2015)
ChrisM@Work (8/11/2015)
rodjkidd (8/11/2015)
Sean Lange (8/10/2015)
SQLRNNR (8/10/2015)
Sean Lange (8/10/2015)
kwere
The above sounds like with "air" or "bear"? I have heard this pronunciation but that has not happened frequently.
kwire
The above sounds 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
August 11, 2015 at 6:14 am
Koen Verbeeck (8/11/2015)
ChrisM@Work (8/11/2015)
rodjkidd (8/11/2015)
Sean Lange (8/10/2015)
SQLRNNR (8/10/2015)
Sean Lange (8/10/2015)
kwere
The above sounds like with "air" or "bear"? I have heard this pronunciation but that has not happened frequently.
kwire
The above sounds...
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
August 11, 2015 at 4:01 am
rodjkidd (8/11/2015)
Sean Lange (8/10/2015)
SQLRNNR (8/10/2015)
Sean Lange (8/10/2015)
kwere
The above sounds like with "air" or "bear"? I have heard this pronunciation but that has not happened frequently.
kwire
The above sounds like "clear" or...
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
August 11, 2015 at 3:28 am
tfeuz (8/10/2015)
Database 1 has a stored procedure that runs in approximately 40 seconds on 15,000 rows of data
Database...
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
August 11, 2015 at 1:39 am
ChrisM@Work (8/10/2015)
-- Rewrite your inner query to use SARGable predicates.
Until and unless you change at least one of your predicates to be SARGable, your query will use a full table...
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
August 11, 2015 at 1:31 am
thbaig (8/10/2015)
Thank you Chris. You are correct and initially I had same understanding, but I de-tracked 🙁Thanks again
No worries, I have days like that too - more as the grey...
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
August 10, 2015 at 10:08 am
This is completely different, using a msTVF vs an iTVF but doesn't have the overhead of the XML black box:
CREATE FUNCTION fn_RemoveUnwantedCharacters
(@MyString VARCHAR(50)) -- arbitrary max, matches iTally table...
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
August 10, 2015 at 9:11 am
This might help:
DECLARE @pageSize INT, @PageNum INT
SELECT @pageSize = 60, @PageNum = 1
SELECT * FROM #inv ORDER BY #inv.InvoiceDateTime ASC
OFFSET 0 ROWS FETCH FIRST 60 ROWS ONLY
SELECT @pageSize =...
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
August 10, 2015 at 8:03 am
thbaig (8/10/2015)
When I set offset it terminate on EndRows , but always start from 0. e.g. if...
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
August 10, 2015 at 7:51 am
Viewing 15 posts - 2,281 through 2,295 (of 10,143 total)