September 24, 2020 at 3:52 am
However, it appears the OP didn't go for it and just only wants his kludge to be made to work.
Considering the way the OP asked the question, I'm not surprised at all. It's also the way most OPs seem to be on SO and a part of the reason why I don't hang around there much. You CAN lead a horse to water and you CAN make them drink but only by applying suction to the wrong end of the horse and I'm not going there. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
September 24, 2020 at 3:54 am
That's not how long the SQL code takes to execute. Tally based method would crush the OP's kludge especially as their test case is spanning thousands of days.
19 minutes is how long it took me to write the tally based code. 12 minutes is how long the first answer-er (GL) took. So when I added my answer there was already the other answer. It's annoying getting beaten to the first answer.
You simply stated ...
It took 19 minutes vs 12 minutes for the rCTE.
... with no indication at all that that's the amount of time it took to make responses.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 46 through 46 (of 46 total)
You must be logged in to reply to this topic. Login to reply