Lynn Pettis (4/10/2014)
No, no problem with the parallelism. There is a problem with using a cursor. From a quick look at the code all of this could be converted to a single set based query. Interested?
Single set based Query? It can be done? Awesome. But I don't have any experience. 🙁
I will share my table and a few data. Hope u can help me.