Viewing 15 posts - 571 through 585 (of 6,036 total)
Couple of points about the query.
The query updates the table with values from a copy of the same table grouped by unique key
TimeId, [GeoId], [XValue].
Every record with the same...
June 20, 2018 at 9:55 am
Try to separate GLL together with its CROSS APPLY and GLS together with its CROSS APLY into different subqueries (in form of either der. I've tables or CTEs) and join...
June 18, 2018 at 5:03 am
The query contains 3 instances of #OUT_DBD__calculateMeasureByAlgorithm_Q_WNF_AFFECTEDAREA_CumulativeCasesAllSeasons which are joined to [DM_Ref].[ref].[Time] 2 times.
I suspect there is a better way to retrieve required data.
I also suspect the temp tables don't...
June 18, 2018 at 4:49 am
June 11, 2018 at 5:17 pm
June 4, 2018 at 6:28 am
Every compiler is a code generator.
A generator of Machine code - aka Assembler.
Telling a machine what to do and let it find a way to execute the request - it's...
June 4, 2018 at 5:25 am
"eventually we'll tell systems what we want and they'll build algorithms"
Does not quite work even with actual people. 🙂
In fact, they build algorithms, but usually it's not exactly what you...
June 3, 2018 at 11:32 pm
June 1, 2018 at 6:27 pm
This one should return the expected result. SELECT *,
COALESCE(
RIGHT([StringBeforeLast%], NULLIF(patindex('%[^0-9,.]%', REVERSE([StringBeforeLast%])),0) -1),
[StringBeforeLast%],
'') + '%' ActualOutcome
FROM (
select S.description
,datalength(S.description) - nullif(CHARINDEX('%', reverse(S.description)),...
June 1, 2018 at 7:13 am
June 1, 2018 at 7:05 am
Also,
row #2 contains the string '1'.
No '%' in there.
Row #2 in #expectedoutcome contains '1%'
How does it correlate?
June 1, 2018 at 7:02 am
June 1, 2018 at 6:40 am
Whatever kind of identity you choose to use - it's the worst possible choice for a clustered key.
The best candidate for a clustered index is a column (set...
May 30, 2018 at 6:48 pm
Viewing 15 posts - 571 through 585 (of 6,036 total)