Viewing 15 posts - 796 through 810 (of 2,648 total)
I would disagree with the normal way as using DelimitedSplit8K - if the goal is to split out to individual columns, using that utility would require a secondary pivot/cross-tab...
October 4, 2021 at 9:34 pm
It's also the case when you refer to the result of a cross apply multiple times the calculations inside of the cross apply are expanded multiple times.
I...
October 4, 2021 at 4:55 pm
You don't need a table valued function. A view will do the job:
"It Depends". I've found that a whole lot of folks end up writing code that causes...
October 4, 2021 at 3:10 pm
;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
Viewing 15 posts - 796 through 810 (of 2,648 total)