Ratio_to_report()的详解
分析函数Ratio_to_report( ) over()使用说明Ratio_to_report() 括号中就是分子,over() 括号中就是分母,分母缺省就是整个占比。Ratio_to_report 一般结合partition by 使用。例如:select t.*,round( ratio_to_report(t.“mainBussinessRevenue”) over (partition by t.“reportDate”) ,4) as “ratio”from t分解语句:a. 如

