Sir Slicendice (8/8/2011)
But just because it's recursive doesn't necessarily mean it's slow!-frank
Nor did I say so in the article. 😉 I absolutely agree and that's why I limited the slowness problem to these types of "counting" rCTE's. Even the title of the article reflects that fact.
It is good, though, to emphasize the fact that I was only talking about Counting rCTE's in the article, so thanks for bringing it up, Frank. I have to admit , though... although While Loops and rCTE's take turns winning, I generally try to avoid both in favor of set-based solutions.
--Jeff Moden
Change is inevitable... Change for the better is not.