T.Ashish (5/2/2013)
Yes, I also feel second query should be slower. But both are working exactly same.
How long do they take to run?
What method are you using to measure the execution time?
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden