我最后提交的代码AC了,但是没有复制下来,这是中途在IDE写的,也修改了下,仅供参考。 select temp1.channel_type,round( (temp1.avgRead-temp2.avgRead)*1.0/temp2.avgRead,4) as escalate from (select channel_type,count(newsid)*1.0 / count(distinct A.uid) as avgRead from user_read as A join new_user_info as B on A.uid = B.uid where new_dt = ...