Viewing 15 posts - 346 through 360 (of 2,645 total)
Instead of EXEC(@query)
try PRINT @query
Then try to execute what is printed.
June 27, 2023 at 11:41 pm
If it's feasible you could do a Full Update, you would update the original record on the source database with the new data first. This way, your fact table always...
June 27, 2023 at 11:36 pm
Jeffrey not exactly. Query should check Voucher Num. If it has GL Posted then take 'GL Posted'. If it doesn't have 'GL Posted' take 'GL Accrual Reversed' and 'GL...
June 26, 2023 at 10:20 pm
SELECT *
FROM final_output fo
WHERE [G/L Transaction Type Desc] = 'GL Posted'
OR ([G/L Transaction Type Desc] <> 'GL Posted'
...
June 26, 2023 at 9:02 pm
DELETE fo
FROM final_output fo
WHERE EXISTS(SELECT 1
FROM final_output fo2
...
June 26, 2023 at 8:01 pm
I have developed two additional versions of the function and incorporated Microsoft's GENERATE_SEQUENCE in a test script.
The code for dbo.GENERATE_SEQUENCE
is provided in the script article. It is written as...
June 26, 2023 at 12:49 pm
The measurements for the code above includes the table allocation as well as the WHILE loop and the final SELECT? In the code above the STATISTICS TIME, IO only...
June 23, 2023 at 5:34 pm
Another interesting thing is that you simulated the manual process of crossing out numbers on paper by deleting them.
It's a bloody shame that the use of GENERATE_SERIES() defeats minimal...
June 22, 2023 at 12:10 am
That's pretty amazing. Now someone just needs to verify that it's actually producing the correct results using a brute force method.
It's basically a primes sieve, but instead of ticking...
June 21, 2023 at 2:45 pm
Despite its appearance, this process seems slow at first glance; however, it actually exhibits impressive speed, computing all prime numbers below one million in just two seconds.
SET...
June 20, 2023 at 10:17 pm
If they are implementing things like shift-left and shift-right maybe they should also implement unsigned integers.
It's coming... According to the way they handled things like GENERATE_SERIES(), etc,...
June 20, 2023 at 6:07 pm
Ok... I'm a little gobsmacked... I ran your code with zero changes and it's riddled with syntax errors and,yet, it ran without error.
What is the following supposed...
June 20, 2023 at 4:30 pm
As one query
DECLARE @maxNumber INT = 1000;
WITH BitArray AS (
SELECT [value] AS Id, 1 AS Bit FROM generate_series(1, (@maxNumber - 1) /...
June 19, 2023 at 11:49 pm
Ok the proof by induction is acceptable
If 2 doesn't add or subtract from what's being measured that's a good reason to get rid of it imo
Yes but the whole...
June 19, 2023 at 4:20 pm
including p.N%6 IN(1, 2)
It does increase the performance a bit, so I would argue it is appropriate. It changes the number of prime candidates from n/2...
June 19, 2023 at 3:12 pm
Viewing 15 posts - 346 through 360 (of 2,645 total)