콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2429 화면

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
1718
1
6월 24
4326
2
3월 24
8333
3
2월 24
5452
1
2월 24
1384