Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2423 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
1710
1
thg 6 24
4282
2
thg 3 24
8324
3
thg 2 24
5438
1
thg 2 24
1383