蒙古野驴(濒危一级)需求,曲线图描述企业活动数量以及支出趋势。计算企业过去半年每个月审核通过总活动数量以及活动总支出、人均支出,当月无数据必须显示0,以及未来半年内的总活动数量以及活动经费申请均值和总值列表效果审核月份月活动总数月人均支出月总支出未来半年活动总数未来半年人均支出未来半年总支出1996-011月活动总数1月人均1月总支出[1996-01-1996-06]1996-02select dateTable.yMonth as auditDay,       round(sum(ifnull(dataInfo.price,0)),2) priceTotalByMonth,       round(sum(ifnull(dataInfo.headcount,0)),2) headcountTotalByMonth,       ifnull(round(sum(dataInfo.headcount*dataInfo.price)/sum(dataInfo.headcount),2),0) perPriceByMonth,       round(sum(               if(dataInfo.startDate >= dateTable.yMonth                      and dataInfo.startDate <= date_format(concat(dateTable.yMonth,'01') + INTERVAL 5 MONTH, '%Y%m')                   ,dataInfo.headcount,0)       ),2) as nextHalfYearHeadcountTotal,       round(sum(               if(dataInfo.startDate >= dateTable.yMonth                      and dataInfo.startDate <= date_format(concat(dateTable.yMonth,'01') + INTERVAL 5 MONTH, '%Y%m')                   ,dataInfo.price,0)       ),2) as nextHalfYearPriceTotal,       ifnull(round(sum(                     if(dataInfo.startDate >= dateTable.yMonth                            and dataInfo.startDate <= date_format(concat(dateTable.yMonth,'01') + INTERVAL 5 MONTH, '%Y%m')                         ,dataInfo.headcount*dataInfo.price,0)             )             /             sum(if(dataInfo.startDate >= dateTable.yMonth                    and dataInfo.startDate <= date_format(concat(dateTable.yMonth,'01') + INTERVAL 5 MONTH, '%Y%m')                 ,dataInfo.headcount,null))       ,2),0) as nextHalfYearPerPricefrom (         select date_format(now(),'%Y%m') as yMonth         union all         select date_format(now() - INTERVAL 1 MONTH,'%Y%m') as yMonth         union all         select date_format(now() - INTERVAL 2 MONTH,'%Y%m') as yMonth         union all         select date_format(now() - INTERVAL 3 MONTH,'%Y%m') as yMonth         union all         select date_format(now() - INTERVAL 4 MONTH,'%Y%m') as yMonth         union all         select date_format(now() - INTERVAL 5 MONTH,'%Y%m') as yMonth     ) dateTable         left join (    select        date_format(audit.audit_date,'%Y%m') as auditDate         ,date_format(com.start_date,'%Y%m') as startDate         ,com.price         ,com.headcount    from        tu_competition_audit audit            left join  tu_competition com  on com.id = audit.competition_id) dataInfo on dataInfo.auditDate = dateTable.yMonthgroup by dateTable.yMonthorder by  dateTable.yMonth表tu_competition_audittu_competition查询结果
点赞 2
评论 0
全部评论

相关推荐

都在说秋招是越早投越好,我越早投和双9大佬同台竞技,我压力暴大呀营销号都说越早投递越好真的不是贩卖焦虑吗
xxxxOxo:分批次投吧,投太多面试安排不过来或者一直面都没时间复盘,那很多面试等于白面了
点赞 评论 收藏
分享
07-11 18:47
已编辑
门头沟学院 后端
在看数据的孤勇者很想...:如果你是在校硕士,六段大厂实习一眼假,假设一段实习两个月,硕一暑假,硕一寒假,大四暑假,大四寒假,大三寒假,大三暑假,哥们,你怎么卷吗,寒假基本两个月在企业实习不现实,所以你可能是日常实习,但是你不可能每段日常实习都是两个月吧,他们日常实习都是三个月起步这样,所以你往前推一下,一段日常实习,就三个月,敢情你大学生课都不上,全在实习吗?你自己问问自己,六段大厂实习,一点没学到,自己说出来会不会笑呀,不管学历,但凡有一段大厂实习都很牛逼了
投递米哈游等公司10个岗位
点赞 评论 收藏
分享
白火同学:先说结论,准大三不是特别好找实习,boss沟通300+没有实习是很正常的情况。一是暑期实习时间太短了,二是在这么多准大四都找不到实习,从实习时间和掌握技术层面,企业会优先看他们。 再说简历,其实985本+准大三到这水平的简历也很优秀了,要说的话,项目经历可以再优化一下,可以基本围绕采取STAR原则,分为项目概述、技术架构、技术亮点、实现结果,再发给AI润色一下。 最后说操作,准大三的话,如果想找实习那就多投,不过现在也7月中旬了,时间上已经略晚了。如果7月底实在找不到,也可以多刷点算法,多学点技术,这实习也不至于一定得有,当然有更好。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务