pivoting large table in postgresql

匆匆过客 提交于 2021-01-29 09:01:29

问题


I'd like to pivot a table, similar to the one below

to display as follows

The actual table I'm using has over 1.6 million rows, and 1500+ fields, mostly with non-boolean answers.Most of the solutions I've found require me to specify what the Field Answer contents will be in the query, which is not feasible, given the number of fields and variety of field answers. Any help would be appreciated.

来源:https://stackoverflow.com/questions/65587003/pivoting-large-table-in-postgresql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!