我想寻求帮助..我有这张桌子
user_id | Metric_1 | Metric_2 | Metric_3
------------------------------------------
1 | Jan | 10 | yes
2 | Feb | 10 | No
3 | Mar | 20 | No
4 | Apr | 30 | No
5 | May | 40 | yes
6 | Jun | 50 | No
7 | Jul | 60 | No
8 | Aug | 70 | yes
9 | Sep | 80 | No
10 | Oct | 90 | yes
11 | Nov | 10 | No
12 | Dec | 20 | No
我想在查询中得到这个结果,我正在使用 postgres tablefunc 交叉表,但我可以得到这个结果......希望你能帮助我
| January | February | March | April | May
---------------------------------------------------
| 10 | 10 | 20 |30 |40
| yes | NO | No |yes |No