I have table in MS SQL as show below.

I want the Output like as show below image without using any temporary table in SQL server.so please help me.

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Arjun SinghPosted Jun 29, 2016, 7:15 AM
Nirav DaraniyaPosted Jun 29, 2016, 6:58 AM
Arjun SinghPosted Jun 29, 2016, 6:51 AM
Arjun SinghPosted Jun 29, 2016, 6:29 AM
Nirav DaraniyaPosted Jun 29, 2016, 6:27 AM
Arjun SinghPosted Jun 29, 2016, 6:24 AM
Arjun SinghPosted Jun 29, 2016, 5:41 AM
Arjun SinghPosted Jun 29, 2016, 5:39 AM
Nirav DaraniyaPosted Jun 29, 2016, 5:22 AM
Rahul VermaPosted Jun 29, 2016, 4:48 AM
Arjun SinghPosted Jun 29, 2016, 4:27 AM