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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -