Viewing 15 posts - 181 through 195 (of 2,648 total)
You need to remove the drop existing bit, as there is no existing index on a new table.
March 15, 2024 at 4:39 am
The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.
One of the big advantages...
March 15, 2024 at 2:51 am
The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.
One of the big advantages of putting...
March 15, 2024 at 1:00 am
The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.
One of the big advantages of putting you results...
March 15, 2024 at 12:04 am
The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.
One of the big advantages of putting you results into a...
March 14, 2024 at 11:01 pm
You can simplify the query to this:
SELECT COUNT(*)
FROM BSEG I
LEFT JOIN BKPF H
ON...
March 14, 2024 at 3:19 pm
Here is a script for getting the definition of temp tables:
https://www.sqlservercentral.com/scripts/get-temp-table-definition
March 14, 2024 at 11:27 am
like inlinable scalar udfs requiremnts , is there any link which can tell me requiremnts of UDF like this one
March 13, 2024 at 9:59 am
This might be more efficient:
;WITH CTE AS
(
SELECT *,
ROW_NUMBER() OVER (ORDER BY (SELECT...
March 13, 2024 at 12:41 am
SELECT Color,
SampleType,
SUM(SampleValue) SampleValue
FROM #SampleData
GROUP BY Color,
...
March 13, 2024 at 12:16 am
From ChatGPT 4:
The provided deadlock XML contains a lot of information, but let's focus on the core elements to diagnose and address the deadlock issue.
First, let's break down the XML...
March 11, 2024 at 10:41 pm
There was a big improvement to the performance of scalar valued functions in SQL Server 2019.
But you need to make sure the improvement is switched on to get the benefit,...
March 11, 2024 at 10:08 am
If you need the count to be NULL when there aren't 5 preceding days then this query will do the trick:
declare @DaysToLookBack int = 5
select a.company,
...
March 9, 2024 at 11:56 pm
declare @DaysToLookBack int = 5
select *
from [dbo].[TestTable1] a
cross apply (select count(*) Count
...
March 9, 2024 at 11:14 pm
There aren't 3 values less than 88 within 5 days of (including the reference date) 2024-02-28
2024-02-28 minus 4 days is 2024-02-24.
So there are only 2 rows less than that (11,...
March 9, 2024 at 9:16 am
Viewing 15 posts - 181 through 195 (of 2,648 total)