Need to change column values into rows in SQL -


i getting output this

s.no    doctor_code acc_name 1       dc000011    jerald 2       dc000011    john 3       dc000011    mani 4       dc000011    null 5       dc000012    ram 6       dc000012    sam 7       dc000012    null 8       dc000012    cena 

but want change output this

s.no    doctor_code  acc1    acc2    acc3   acc4 1       dc000011    jerald   john    mani   null 2       dc000012     ram     sam     null   babu 

please me how write sql query this.

thanks in advance


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -