Viewing 15 posts - 796 through 810 (of 2,645 total)
;WITH CTE AS
(
SELECT c.Id CustomerId, c.CustomerName, b.BalanceDate MaxDate, b.Balance, 'Bond' AccountType
FROM [dbo].[Customer] c
...
October 4, 2021 at 11:37 am
Did you get an error message?
October 2, 2021 at 9:31 am
Has table tbl_probate_case
got a column named case_submitted_date
in the environment you are getting the error?
October 1, 2021 at 11:41 am
Each row contains something like 400 different columns / measures. There are some measures that are strings so each row has quite a large size.
The problem is! The DELETE...
September 30, 2021 at 1:31 pm
There is a serious problem with the "equivalent" code you wrote though. It's not "equivalent" in the results for the last 3 tests. The table code comes...
September 28, 2021 at 12:51 am
There is a serious problem with the "equivalent" code you wrote though. It's not "equivalent" in the results for the last 3 tests. The table code comes up a...
September 27, 2021 at 5:53 pm
Just change the order of comparison in the datediff for overlap to change the sign:
sum(CASE WHEN datediff(mi,t1.travel_end,t2.travel_start) <0
THEN datediff(mi,t2.travel_start,t1.travel_end) ELSE NULL
END)...
September 27, 2021 at 3:44 pm
Does it insert the data into the table variable in the correct order? You can tell if you query the table and look at the Id value.
September 27, 2021 at 3:34 pm
So it produces the correct result.
To get it into 2 separate column just use the CASE statement I provided earlier.
Then just remove the other columns from the query you do...
September 27, 2021 at 3:28 pm
that doesn't seem to give the total minutes of gaps and/or overlaps though? It just shows the 2 rows of data that may have an issue.
sql2000 does support TOP,...
September 27, 2021 at 3:11 pm
Have you tried the options: optimize for unknown and recompile?
September 27, 2021 at 2:30 pm
That is not really consumable data as I don't have all your tables that make up the query.
You could add an identity column to the temporary table then insert values...
September 27, 2021 at 2:27 pm
Have you thought about upgrading your server?
not an option i'm afraid. this is what i have to work with.
i have done what you suggest though and used a...
September 27, 2021 at 2:10 pm
I can't see how your SQL will work with all those right brackets?
September 27, 2021 at 1:48 pm
i'm not sure either of those will work with SQL 2000? i know LAG isn't supported. and i don't believe PARTITION is supported in SQL 2000 either?
Have you thought...
September 27, 2021 at 1:26 pm
Viewing 15 posts - 796 through 810 (of 2,645 total)