Viewing 15 posts - 586 through 600 (of 1,424 total)
Heh... one good test result is worth a thousand expert opinions. 😀
This 🙂
You ran a comparison?
Would we need to? A single math calc vs iterating thru string...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 24, 2021 at 12:28 pm
I've amended your code. I think this should be a few times faster as it removes the need for a tally of 7 week days and just calculates the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 24, 2021 at 12:05 pm
Here's another version which replaces the second dbo.fnTally tvf with an explicit values table (0-6) and which eliminates the outer WHERE clause by adding the row filter to the final...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 22, 2021 at 1:03 pm
Thank you Jeff. It's my pleasure of course. Please let me know if there's anything else I could do
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 21, 2021 at 9:54 pm
You ran a comparison?
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 21, 2021 at 7:25 pm
Fwiw in 2021. In the FROM clause use dbo.fnTally and CROSS APPLY (both twice) to hierarchically generate the first 7 days of each month. Then in the WHERE clause filter...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 21, 2021 at 6:44 pm
It's a lot going on. The query splits the rows into "gap and island" groupings labelled 'grp'. Within each grouping the CTE 'top_c_cte' selects the largest CA value when Stat='C'. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 18, 2021 at 11:39 am
It's not really a conclusive test. Maybe you're missing a JOIN condition on location? Is there a column in the SCPOMGR.DMDUNIT table which correlates to the 'LOC' column in the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 17, 2021 at 3:12 pm
Maybe the INNER JOIN between SCPOMGR.FCSTPERFSTATIC AS F and SCPOMGR.DMDUNIT AS D on the 'DMDUNIT' column could be causing row expansion. Would you expect this query to return zero rows?
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 17, 2021 at 12:32 pm
Vielleicht sowas
with upd_cte(SUM_KBABenoetigteZeit, pm_extended_id) as (
select sum(TCompl.usr_KBABenoetigteZeit), PMProc.pm_extended_id
from rm_task_completion TCompl
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 16, 2021 at 1:25 pm
Again due to gaslighting on the other major technical Q&A forum I'm making pointless public statements
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 15, 2021 at 1:51 pm
For independent groups to modify the same set of objects and end up with code which combines the best elements of each somehow the merge conflicts must be dealt with,...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 14, 2021 at 3:03 pm
After each merge make the remaining teams (with unmerged code) pull from the master (or the newer, more pc, 'main') branch. The team with the least seniority makes the last...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 14, 2021 at 12:15 pm
You could try PATINDEX twice to trim off any non 0-9 or A-z character. It works with any number of *'s, leading/trailing spaces, etc
select calc.*, substring(ucl.PROCEDURE_COMMENT,
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 9, 2021 at 6:29 pm
Suppose an offset day variable '@day_offset' is declared and then subtracted from GETDATE(). To get a daily report you could CAST the 'datetime' column into 'date' using CROSS APPLY (VALUES...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
September 8, 2021 at 2:58 pm
Viewing 15 posts - 586 through 600 (of 1,424 total)