题解 | 大小写混乱时的筛选统计
大小写混乱时的筛选统计
https://www.nowcoder.com/practice/81cb12931a604811ae69d332515c7734
with t as( select exam_id,tag,count(start_time) as answer_cnt from exam_record left join examination_info using(exam_id) where upper(tag)!=tag group by 1 having answer_cnt <3), t1 as (select exam_id,tag from exam_record left join examination_info using(exam_id) ) select t.tag as tag ,count(*) as answer_cnt from t inner join t1 on upper(t.tag)=t1.tag group by 1
查看9道真题和解析