Viewing 7 posts - 1 through 7 (of 7 total)
It's much better, perf are really near the cursor, it seems to be a little bit much better. Thanks !
November 9, 2019 at 8:55 pm
It's working, but cursor is more than 100 times faster than recursive CTE. So it's seems to be a bad idea to try to replace it by a query.
November 8, 2019 at 7:55 pm
Hi,
The Data :
DECLARE @Planning_Proposal_Temp AS TABLE(object varchar(10), dateFrom datetime2, dateTo datetime2)
INSERT INTO @Planning_Proposal_Temp(object, dateFrom, dateTo )
SELECT *
FROM (VALUES
...
November 8, 2019 at 8:33 am
Hi,
Sorry but it is not very easy for me to explain clearly what i need in English.
I need to return for each Object all possible couple of date that are...
November 7, 2019 at 12:56 pm
Effectivly, it' is between the previous row, but not between the previous row that is return by the select.
it is for a booking application, i have to return all possible...
November 7, 2019 at 12:52 pm
Hi,
Really Thanks for your help.
@koti.raavi, i have try your solution : With LEAD, it's return all rows :
With LAG we are near the good result, but it's...
November 7, 2019 at 12:34 pm
Hi,
Thanks for your answers.
Jonathan solution doesn't work for my case. Because in the sample i have just put few rows, but in fact i have hundreds of raw, and i...
November 7, 2019 at 8:59 am
Viewing 7 posts - 1 through 7 (of 7 total)