Viewing 15 posts - 1,681 through 1,695 (of 10,143 total)
craig.bobchin (3/21/2016)
matak (3/20/2016)
select *
from...
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
March 21, 2016 at 4:23 am
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)
ChrisM@Work (1/18/2016)
Jeff Moden (1/18/2016)[hrCan we agree on "SARGable in one direction only" as it's often sufficient to permit tweaking a decent plan?
With the battles...
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
March 18, 2016 at 10:21 am
Couple of minor tweaks:
WITH SequencedRows AS (
SELECT
p.ClientId,
h.StartDate,
h.EndDate,
cp.CoveragePlanName,
rn = ROW_NUMBER() OVER (PARTITION BY d.clientid, d.coverageplanname ORDER BY d.StartDate)
FROM ClientCoverageHistory h
INNER JOIN ClientCoveragePlans p
ON p.ClientCoveragePlanId = h.ClientCoveragePlanId
INNER JOIN CoveragePlans...
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
March 18, 2016 at 6:44 am
No; but there are two common ways around this. Either resolve out the string to a table of values and join to it, or write the statement as dynamic sql.
Incidentally,...
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
March 17, 2016 at 10:16 am
smithhead (3/17/2016)
Good to know about compute scalars, I was wondering what that meant.
What do...
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
March 17, 2016 at 9:41 am
Jeff Moden (3/16/2016)
Luis Cazares (3/16/2016)
The new data types don't allow these operations to allow better functionality.
That's a serious matter of opinion. I think they flubbed it in two ways...
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
March 17, 2016 at 7:52 am
There's no warning on the result operator to back this up (if the warning string is too long to display in the "hover over" property sheet, it can still be...
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
March 17, 2016 at 2:50 am
I'd strongly urge you to spec out the functionality of
EXEC [dbo].eusp_e5_eSM_SE_GetHistoryForItem
and focus on this. It's the meat on the bones of this report.
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
March 16, 2016 at 10:09 am
Emil B (3/16/2016)
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
March 16, 2016 at 8:37 am
Phil Parkin (3/15/2016)
yb751 (3/15/2016)
GilaMonster (3/15/2016)
A sig that claims an MCSA and can't use SUM?You caught that too...makes you wonder if people are using other people's accounts. But why?
Indeed. Why...
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
March 15, 2016 at 9:30 am
Sean Lange (3/15/2016)
ChrisM@Work (3/15/2016)
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
March 15, 2016 at 9:28 am
Have I been reasonable with this guy? He crops up fairly regularly and is quite obviously well out of his depth - but I don't see a huge amount of...
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
March 15, 2016 at 7:37 am
Junglee_George (3/15/2016)
But everywhere it is returning a value 0, even at the previous...
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
March 15, 2016 at 2:45 am
girl_bj (3/14/2016)
Thanks.Is it possible to include in between new data?
Newrecord
chicago
20pax
Newrecord
Spain
10pax
Newrecord
austria
90pax
Sure:
;WITH sample_data (resultA, resultB, resultC, resultD) AS (
SELECT 'chicago', 'ID123', '20pax', 'ID123' UNION ALL
SELECT 'austria', 'ID999', '90pax', 'ID999' UNION ALL
SELECT 'Spain',...
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
March 15, 2016 at 2:29 am
;WITH sample_data (resultA, resultB, resultC, resultD) AS (
SELECT 'chicago', 'ID123', '20pax', 'ID123' UNION ALL
SELECT 'austria', 'ID999', '90pax', 'ID999' UNION ALL
SELECT 'Spain', 'ID777', '10pax', 'ID777')
SELECT x.newcol1, x.newcol2
FROM sample_data
CROSS APPLY (
VALUES...
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
March 14, 2016 at 6:53 am
Viewing 15 posts - 1,681 through 1,695 (of 10,143 total)