当前位置: 首页 > news >正文

SQL140 未完成率top50%用户近三个月答卷情况

SQL140 未完成率top50%用户近三个月答卷情况 

# 请统计SQL试卷上未完成率较高的50%用户(对所有用户的完成率进行排序,找出完成率排名小于等于 50% 的用户)中,
# 6级和7级用户在有试卷作答记录的近三个月中,每个月的答卷数目和完成数目。
# 按用户ID、月份升序排序。
withtemp1 as (selectuser_info.uid,count(if(submit_time is null, 1, null)) / count(*) as incomplete_ratefromexam_recordjoin user_info using (uid)whereexam_id in (selectexam_idfromexamination_infowheretag = 'SQL')group byuidorder byuid desc),temp2 as (selectuid,incomplete_rate,percent_rank() over (order byincomplete_rate desc) as prfromtemp1order bypr),temp3 as (selectuid,date_format(start_time, "%Y%m") as start_month,count(start_time) as total_cnt,count(submit_time) as complete_cntfromexam_recordjoin user_info using (uid)whereuid in (selectuidfromtemp2wherepr <= 0.5)and uid in (selectuidfromuser_infowherelevel in (6, 7))group byuid,date_format(start_time, "%Y%m"))
selectuid,start_month,total_cnt,complete_cnt
from(selectuid,start_month,total_cnt,complete_cnt,rank() over (partition byuidorder bystart_month desc) as rkfromtemp3) as t1
whererk <= 3
order byuid,start_month

http://www.lryc.cn/news/587253.html

相关文章:

  • Flask中的路由尾随斜杠(/)
  • Kafka——Kafka 线上集群部署方案怎么做?
  • 代理模式:控制对象访问
  • AutoLabor-ROS-Python 学习记录——第二章 ROS通信机制
  • CATIA许可价格高,设计部门如何精细化分配?
  • Python 数据挖掘之数据探索
  • 鸿蒙选择本地视频文件,并获取首帧预览图
  • 【算法】贪心算法:柠檬水找零C++
  • 密码学系列文(1)--密码学基础概念详解
  • 密码学系列文(2)--流密码
  • ansible自动化部署考试系统前后端分离项目
  • 在 C# 中调用 Python 脚本:实现跨语言功能集成
  • MySQL逻辑删除与唯一索引冲突解决
  • C++高频知识点(九)
  • 39.Sentinel微服务流量控制组件
  • 【一起来学AI大模型】部署优化推理加速:vLLM
  • word中多行合一功能实现
  • comfyUI-ControlNet-姿势控制深度控制
  • Java 8 LocalDate 日期操作全攻略
  • CS课程项目设计1:交互友好的井字棋游戏
  • 【多线程】 线程池设多大才合理?CPU 密集型和 I/O 密集型的终极公式
  • 深度学习图像分类数据集—七种树叶识别分类
  • AI生成单词消消乐游戏. HTML代码
  • LeetCode 2401.最长优雅子数组
  • Ampace厦门新能安科技Verify 测评演绎数字推理及四色测评考点分析、SHL真题题库
  • 【sql学习之拉链表】
  • 系规备考论文:论IT服务知识管理
  • MyBatis框架进阶指南:深入理解CRUD与参数映射
  • CVE-2022-0609
  • Oracle SQL - 使用行转列PIVOT减少表重复扫描(实例)