跳至内容
菜单
此问题已终结
1 回复
2829 查看

select req,
SUM(case when (stage='Selected') then count else NULL end) as Selected,
SUM(case when (stage='Initial Selection') then count else NULL end) as "Initial Selection",
SUM(case when (stage='Hr Round') then count else NULL end) as "Hr Round"
from table1 Group by req

In the above psql query stage is passed statically(hard coded) in CASE statement , How can we pass stage name dynamically from stage_table ?

形象
丢弃
最佳答案

Hi, you can follow this: https://youtu.be/ntMaAYbsDYM 

Hope it helps

形象
丢弃
相关帖文 回复 查看 活动
2
7月 24
2432
1
6月 24
4950
2
3月 24
8816
3
2月 24
5851
1
2月 24
1722