是否可以在Oracle的CASE语句中插入百分比公式?如果是这样,有人有任何例子吗?
我的百分比公式如下:
“事实 - 人”.Headcount / SUM(“Fact - People”.Headcount BY“Grade - Current”。“Grade Equivalency”,Calendar.Version)* 100
答案 0 :(得分:0)
你的意思是:
CASE
WHEN "Fact - People".Headcount/SUM("Fact - People".Headcount BY "Grade - Current"."Grade Equivalency", Calendar.Version)*100 = something THEN some_value
ELSE some_other_value
END;