Viewing 15 posts - 2,011 through 2,025 (of 59,067 total)
@ jay-125866 ,
This thread has really gotten interesting with some great alternatives to the classic CROSSTAB method.
Can you provide some additional info about your real table?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 6:05 pm
Or maybe even using LEAD:
Yep. I suggested that above as a possible alternative. Thanks for taking the time to write the code for it.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 5:58 pm
thank you All for valuable directions. I will try to follow correct path as suggested.
one more question about locking, OFFLINE rebuild lock table for upcoming transactions. What about current...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 5:44 pm
Yes, nice solution Jeff.
Here is an alternative solution:
That might be the way to go instead of using the CROSSTAB method on this one, Jonathan.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 5:40 pm
@ jay-125866 ,
Just to be sure, there are some possibly significant differences between CROSSTAB and the SELF-JOIN methods that have been offered above. The CROSSTAB method does a single pass...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 5:19 pm
I guess at this point, I have to ask, why does this need to be done as a Natively Compiled Proc to begin with. The use of a Tally table...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 5:51 am
So go ahead and do it. Not sure specifically how a tally table is going to help here. Besides, a tight loop should likely perform well enough on a...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 5:48 am
Can you use a Tally function in natively compiled procs? If not, can you build an inline Tally cte? If so, I'd get rid of that bloody while loop.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 3:37 am
I love it when someone posts "Readily Consumable" data along with a crystal clear example of the output that actually contains the same result data that's in the example data......
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 1:41 am
I actually didn't think of the tally table which will speed up performance, no doubt. My problem is that I need to identify all the non-printable characters and replace...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 1:10 am
Definition of stored procedure
create procedure [dbo].[smGetMinDate] @O_dMinDate datetime = NULL
output as declare @dDefaultMinDate datetime
select @dDefaultMinDate = GETDATE()
select @dDefaultMinDate = DATEADD(mm,-(DATEPART(mm,@dDefaultMinDate))+1,@dDefaultMinDate)
select @dDefaultMinDate = DATEADD(dd,-(DATEPART(dd,@dDefaultMinDate))+1,@dDefaultMinDate)
select @dDefaultMinDate = DATEADD(yy,-(DATEPART(yy,@dDefaultMinDate))+1900,@dDefaultMinDate)
select...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 12:11 am
If it were me, I'd contact some good recruiters on this. The good one's will know a path or two on how to do such a thing and, with a...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 5, 2023 at 12:02 am
if not spam go read the answers to your original question in reddit - https://www.reddit.com/r/googlecloud/comments/10kloy5/do_entrylevel_cloud_positions_exist/
If it were me, I'd be disappointed in the answers on that link. Might be...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 4, 2023 at 11:56 pm
Is there a way around or even a better way to do what I'm trying to?
What is it that you're ultimately trying to do?
Yeah... I can see you're looping...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 4, 2023 at 11:38 pm
What are you trying to do? Why do you like screwed up presentation formats for your data? The whole idea of client/server architecture from the 1970s is that data...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 4, 2023 at 6:25 am
Viewing 15 posts - 2,011 through 2,025 (of 59,067 total)