我有一个表,并希望将其行转置为列,类似于数据透视表但没有汇总.
例如,我有以下表格:
Question
--QuestionID
--QuestionText
Response
--ResponseID
--ResponseText
--QuestionID
Run Code Online (Sandbox Code Playgroud)
基本上我希望能够创建一个动态表,如:
Question 1 Text | Question 2 Text | Question 3 Text
---------------------------------------------------
Response 1.1 Text | Response Text 1.2 | Response 1.3
Response 2.1 Text | Response Text 2.2 | Response 2.3
Response 3.1 Text | Response Text 3.2 | Response 3.3
Response 4.1 Text | Response Text 4.2 | Response 4.3
Run Code Online (Sandbox Code Playgroud)
主要要求是我在设计时不知道问题文本是什么.
请有人帮忙 - 我把头发拉出来:oS
基本上,您可以保证在此方案中每个相应问题都会有响应.