0

是否可以在 Oracle 的 CASE 语句中插入百分比公式?如果是这样,有人有任何例子吗?

我的百分比公式如下所示:

"Fact - People".Headcount/SUM("Fact - People".Headcount BY "Grade - Current"."Grade Equivalency", Calendar.Version)*100

4

1 回答 1

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;
于 2013-10-08T13:05:14.760 回答