Viewing 15 posts - 676 through 690 (of 2,694 total)
you have already been given the answer to your last (and prior questions) - if they are above your head then consider hiring a professional (as you have been advised...
January 4, 2023 at 8:49 pm
you made it clear that you do not wish the job to run on the first of the month if it it is on a Sunday - but what do...
January 3, 2023 at 7:42 pm
spam - exact copy of https://www.reddit.com/r/aws/comments/100je4m/step_functions_trigger_rule/
January 2, 2023 at 10:59 am
Is this solution is only good if there are no dates falling on weekends?
what mention of weekends? there is nothing on the original OP post that mentions...
December 31, 2022 at 5:20 pm
Is this solution is only good if there are no dates falling on weekends?
what mention of weekends? there is nothing on the original OP post that mentions it neither...
December 31, 2022 at 3:00 pm
To be absolutely clear, you want a:
2) unique clustered [index] on (tenant,year,id)
And if you partition the data (which typically wouldn't be necessary here), partition it...
December 30, 2022 at 11:46 pm
@frederico_fonseca I apologize, I missed that you were doing a recursive loop there. My bad.
don't worry about it.
December 30, 2022 at 8:20 pm
thanks Jeff.
regarding the "performance and cartesian joins" - splitting the CTE to insert the BASE dates onto a temp table and then joining that temp table onto the main table...
December 30, 2022 at 7:14 pm
To be absolutely clear, you want a:
2) unique clustered [index] on (tenant,year,id)
And if you partition the data (which typically wouldn't be necessary here), partition it by (tenant,...
December 30, 2022 at 6:54 pm
I added 1000 "sets" of 3 groups, each with 13 dates. The Cartesian products persisted in the execution plan, each of them doing reads of 39,078,039 rows.
Too bad because,...
December 30, 2022 at 6:37 pm
@frederico_fonseca I had the same idea as you initially, but your solution will not work either. What if there were 20 groups instead of 3? What if the gaps...
December 30, 2022 at 6:36 pm
in order to split a string like that into individual columns you have to first split into rows then aggregate onto columns
sample code below - function DelimitedSplit8K_LEAD is from Erikur...
December 30, 2022 at 5:32 pm
@jeff-moden - did a small change on original code to "correct" one duplicated entry that was on both group 2 and 3 (darn time part messing up)
December 30, 2022 at 5:19 pm
In this case I cannot see anyway to predict when missing dates are needed (2017-11-16) or not needed (2017-11-19 & 2017-11-18).
This is a delayed message as I...
December 30, 2022 at 1:31 pm
my attempt at this.
Do note that the 5 days interval is partially misleading as to the final result because of the time part.
,(7 ,'2017-11-17 09:38:00.000') --Group 2 starts here
,(7 ,'2017-11-12...
December 30, 2022 at 12:48 pm
Viewing 15 posts - 676 through 690 (of 2,694 total)