有没有postgreSQL函数可以在特定条件下计算数学度量


调用IDA123>td style="text-align:left;">贷款银行账户AB900>td style="text-align:left;">贷款银行账户请求代理
with t2 as 
(select round(1.0*count(distinct call_id)/count(*), 2) dis_by_calls from t)
select  intent_product
,count(*)                   as Resolved_Count
,count(*)*max(dis_by_calls) as Containment_Count
from     t, t2 
group by intent_product
having   intent_product <> 'request_agent'
containment_count0.80
intent_productresolved_count
贷款银行账户2
停止支票10.40

最新更新