Viewing 15 posts - 2,191 through 2,205 (of 59,082 total)
In honor of this article being republished...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 2, 2023 at 1:25 am
I think WordPress is great for me. I've used it for my blog and for T-SQL Tuesday. A lot of the admin/back end stuff is pretty simple for me,...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 31, 2022 at 3:18 am
Posting again because the first post of pages > 1 never shows up until a second post on the page is made.
Thanks again, everyone. This has been really interesting and...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 9:26 pm
@Frederico,
Ok. I'm not sure which part of my brain was missing when it came to that index but that did the trick. It won't touch the QU when it comes...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 9:23 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...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 8:35 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...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 7:03 pm
I've been researching this for over 3 hours and none of the syntax I've found works. I have a column with data that's been merged from various other tables...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 6:57 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, like...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 5:36 pm
That certainly solves the problem without an explicit WHILE loop or a "Quirky Update". I used the following code the add 5 more sets of 3 groups each to "play"...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 5:29 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...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 4:41 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...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 4:36 pm
Here's the solution to the problem you posted.
SELECT CSV = STRING_AGG(sal,',')
FROM #emp
;
There are more powerful uses for the STRING_AGG() function if you have...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 4:15 pm
Thank you so much J. Drew Allen! That is exactly what I was looking for. I appreciate your help and detailed script.
Do you understand what it does and how...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 3:57 pm
Ummm... ok. Why not the best of both worlds instead of "upset everyone"?
If you mean add some relational stuff to the WP document store, I'm tempted. I think...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 3:53 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, year) not...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 30, 2022 at 3:39 pm
Viewing 15 posts - 2,191 through 2,205 (of 59,082 total)