コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2376 ビュー

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
1636
1
6月 24
4186
2
3月 24
8302
3
2月 24
5403
1
2月 24
1356