oracle里面有乘积的聚合函数吗,如sum是相加
答案:2 悬赏:60
解决时间 2021-11-17 16:20
- 提问者网友:敏感魔鬼
- 2021-11-16 18:19
oracle里面有乘积的聚合函数吗,如sum是相加
最佳答案
- 二级知识专家网友:错过的是遗憾
- 2021-11-16 19:20
select exp(sum(ln( field_name ))) from table_name;
SQL code--测试数据
create table tb_a(id int,num int);
insert into tb_a
select 1,2 from dual union all
select 3,4 from dual;
--执行查询
Select power(10, Sum(Log(10, num))) From tb_a
--查询结果
8
SQL code--测试数据
create table tb_a(id int,num int);
insert into tb_a
select 1,2 from dual union all
select 3,4 from dual;
--执行查询
Select power(10, Sum(Log(10, num))) From tb_a
--查询结果
8
全部回答
- 1楼网友:转身→时光静好
- 2021-11-16 19:36
没有
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯