Viewing 15 posts - 2,161 through 2,175 (of 59,066 total)
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...
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"...
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...
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...
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...
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...
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...
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...
December 30, 2022 at 3:39 pm
Thanks, Steve.
December 29, 2022 at 6:16 pm
I've logged quite a few bugs lately on things. We've got a test site setup for an upgrade to PHP/WP/Nami, which is delaying work on other bugs. The upgrade...
December 29, 2022 at 6:14 pm
Bloody forum software did it again... since the post I just posted is the first one on a new page, it's not showing up until I make another post. I...
December 29, 2022 at 4:41 pm
I show an example in the query tuning book where defragmentation improves performance because of a scan, fewer pages read. I also explain all the reasons why, this probably...
December 29, 2022 at 4:38 pm
Thanks, Greg. I have to admit I took it wrong way a bit and so was just making sure. And I love both of your examples.
As a bit of a...
December 28, 2022 at 10:28 pm
Thanks for the "faith" and thank you for the incredible feedback.. Our buddy, Ed, did the same thing with similar results after I told him what I'd found, especially concerning...
December 28, 2022 at 9:25 pm
You do realize that your graphic has the S1SDat column listed 3 times, right? Is there a similar problem with the rest of the code that you've not displayed?
Also, do...
December 28, 2022 at 9:14 pm
Viewing 15 posts - 2,161 through 2,175 (of 59,066 total)