Move rows to columns in SQL Server -
i have tried using pivot , other methods fix problem, seem stuck.
customerid question answer ........................................................... 469494 q111 mottok e-post 469494 q125 ja 469494 q112 ja 469494 q113 ingeniør eller bachelor tekn 469494 q16 6 meget bra
i need each customer row inlude answers, , columns value of question key. this:
customerid q111 q125 q112 q113 (etc) ......................................................................................... 469494 mottok e-post ja ja ingeniør eller bachelor tekn
there multiple customers answering. , answers freetext.
my main problem here questions - , ofcourse - answers dynamic. answering questionnaire, , report should able run , extract info specific questionnaire, different question keys , number of questions may vary.
i didn't manage pivot function, values differ.
Comments
Post a Comment