select a,b,c,round(sum(case d when '1' then 1 else 0 end)::numeric/count(*)::numeric,2)from rhj_tmp group by a,b,c;
postgresql 查询语句计算在线率
猜你喜欢
转载自blog.csdn.net/qq_32157851/article/details/79895859
今日推荐
周排行