第一题花了太多时间了,最后只会很笨的方法: drop table if exists t0; drop table if exists t1; drop table if exists t2; create table t0 as (select id from fw_advertiser where industry='Car'); create table t1 as select fwa.name, count(fwc.duration) as total from fw_creative as fwc join fw_advertiser as fwa on fwc.advertiser_id=fwa.id where fwc.duration <= 20 group by fwa.id havin***a.id in (select * from t0); create table t2 as select fwa.name, count(*) as yes from fw_creative as fwc join fw_advertiser as fwa on fwc.advertiser_id=fwa.id group by fwa.id havin***a.id in (select id from fw_advertiser where industry='Car'); select t1.name as advertiser_name, t2.yes / t1.total as percentage from t1 join t2 on t1.name = t2.name; 第二题就是层次遍历就行了。 第三题没时间看
1 7

相关推荐

04-02 16:49
门头沟学院 Java
_bloodstream_:我也面了科大讯飞,主管面的时候听说急招人优先考虑能尽快实习的,我说忙毕设,后面就一直没消息了
点赞 评论 收藏
分享
待现的未见之事:起码第一句要把自己的优势说出来吧。比如什么xx本27届学生,随时到岗....
点赞 评论 收藏
分享
牛客网
牛客企业服务