来源:https://stackoverflow.com/questions/63072200/any-better-way-to-return-1-value-for-multiple-row-in-case-when-by-window-functio 标签 postgresql window-functions case-when