Viewing 15 posts - 2,176 through 2,190 (of 59,067 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...
--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
Thanks, Steve.
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
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...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 28, 2022 at 10:28 pm
Viewing 15 posts - 2,176 through 2,190 (of 59,067 total)