Abhay,

My method with a cursor was born of ignorance - I did not know that I shouldn't do it!
BUT experience shows: (a) it is faster (b) it works.