Viewing 15 posts - 5,041 through 5,055 (of 59,101 total)
You might want to take a look at the execution plan for that. With just the 9 rows of data the OP posted, it does 48 table scans...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 9:28 pm
Disregard my previous from this post if you end up seeing it in your email. I did some bad math. The 432 rows are completely necessary.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 9:27 pm
Here is an alternate version
With accountData
As (
Select Distinct
td.[Year]
...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:56 pm
Heh... ok. Been there and done that... That's how it always starts. 😀
The other thing is that someone that gets desperate for some code on something much larger, might end...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:46 pm
If you want help on this, and there are a large number of people that can help with this on this forum, you're going to have to provide more information...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:42 pm
Have a read of Jeff Moden's articles Cross Tabs and Pivots. They explain exactly how to achieve what you're after.
And the second article describes how to do it...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:34 pm
I "love" some of the ads I've seen... they start with needing only 2 years of experience but want a full stack developer that is also an expert at database...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:28 pm
You can create a DDL trigger that logs this information into a table.
This is actually the best idea (IMHO) unless you want to buy something to do it for...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:13 pm
After loaded to the cursor(BEGIN - Start Transaction) than there are other sp's used in the process before a final END. Thanks.
You posted the code that creates the cursor...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 8:07 pm
Again, you haven't ever done an actual logical design, have you? Genuine data modeling, with no indexes, etc.., where you went through a true normalization process.
Heh... more than you...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 7:46 pm
BWAAAA-HAAAA-HAAAA!!! Ok... I "get it". Yep... I agree... you never have to mention "IDENTITY" in a logical model. I have to tell you, though, that the idea of having a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 6:15 pm
Heh... and why would anyone in their right mind think that's going to be any better. Notice I didn't put a question mark after that statement. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 5:24 pm
Ads always ask for more than the job. I don't know that I've seen one that was accurate since I stopped tending bar.
If you think you have to meet...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 5:23 pm
My opinion is that if a product has so many performance issues, perhaps it's better to find a different product. Atlassian is obviously aware of the performance problems, especially because...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2021 at 3:50 pm
That's where you and I would differ... to me, the "customer number" would be the IDENTITY column. Or, perhaps, a Random GUID. 😀 Why would your "customer number"...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2021 at 8:29 pm
Viewing 15 posts - 5,041 through 5,055 (of 59,101 total)