Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2373 Zobrazení

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 ?

Avatar
Zrušit
Nejlepší odpověď

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

Hope it helps

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 24
1636
1
čvn 24
4186
2
bře 24
8302
3
úno 24
5403
1
úno 24
1356