牛客19350690...:大佬,我想请问一下为什么我的代码里面就第十行的count(*)变成count(score)之后就会有only full group by的报错呀
0 点赞 评论 收藏
分享
2021-10-25 21:11
复旦大学 算法工程师 牛客61809660...:SELECT t2.tag, t2.answer_cnt FROM (SELECT tag, COUNT(start_time) answer_cnt from exam_record inner join examination_info on exam_record.exam_id = examination_info.exam_id GROUP BY tag HAVING answer_cnt<3) t1 JOIN (SELECT upper(tag) as tag, COUNT(start_time) answer_cnt from exam_record inner join examination_info on exam_record.exam_id = examination_info.exam_id GROUP BY upper(tag)) t2 ON UPPER(t1.tag)= t2.tag AND t1.tag != t2.tag and t1.answer_cnt != t2.answer_cnt;
0 点赞 评论 收藏
分享
创作者周榜
更多
关注他的用户也关注了: