题解 | #筛选限定昵称成就值活跃日期的用户#

筛选限定昵称成就值活跃日期的用户

https://www.nowcoder.com/practice/2ed07ff8f67a474d90523b88402e401b

select
    distinct tp.uid as uid,
    t3.nick_name as nick_name,
    t3.achievement as achievement
from
    (
        select
            id,
            uid,
            exam_id as id_3,
            start_time as id_4,
            score
        from
            exam_record as t1
        union
        select
            id,
            uid,
            question_id as id_3,
            submit_time as id_4,
            score
        from
            practice_record as t2
    ) as tp
    inner join user_info as t3 on tp.uid = t3.uid
where
    date_format (tp.id_4, '%Y-%m') = '2021-09'
    and t3.nick_name like '牛客%号'
    and t3.achievement between 1200 and 2500;

全部评论

相关推荐

04-02 16:49
门头沟学院 Java
_bloodstream_:我也面了科大讯飞,主管面的时候听说急招人优先考虑能尽快实习的,我说忙毕设,后面就一直没消息了
点赞 评论 收藏
分享
04-11 21:31
四川大学 Java
野猪不是猪🐗:(ja)va学弟这招太狠了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务