How to include a row from the next group into an aggregation in postgres

前端 未结 0 905
庸人自扰
庸人自扰 2021-01-07 06:05

I have a table in postgres with categories and values. I want to perform an aggregation, e.g. avg(value) per category but including the first row of the next category in the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题