排名

用户解题统计

过去一年提交了

勋章 ①金银铜:在竞赛中获得第一二三名;②好习惯:自然月10天提交;③里程碑:解决1/2/5/10/20/50/100/200题;④每周打卡挑战:完成每周5题,每年1月1日清零。

错题集 数据思维刷题中答错的题目

模块 知识点 题目 你的答案 正确答案 操作
暂无错题,继续保持!

收藏

收藏日期 题目名称 解决状态
没有收藏的题目。

评论笔记

评论日期 题目名称 评论内容 站长评论
没有评论过的题目。

提交记录

提交日期 题目名称 提交代码
2026-12-01 冬季下雪天数 
select 
city, 
round(sum(case when con regexp '雪' then '1' else '0' end), 2) as snowy_days
from weather_rcd_china
where month(dt) in(12, 01, 02)
group by city 
order by snowy_days desc
2026-12-01 冬季下雪天数 
select 
city, 
sum(case when con regexp '雪' then '1' else '0' end) as snowy_days
from weather_rcd_china
where month(dt) in(12, 01, 02)
group by city 
order by snowy_days desc
2026-12-01 滴滴面试真题(2)打车订单呼叫应答时间 
select sum(timestampdiff(second, call_time, grab_time)) / count(1) as avg_response_time_seconds
 from didi_order_rcd
 where grab_time != '1970-01-01 00:00:00'
2026-12-01 条件过滤(2)半夜活动有猫腻,Hour函数给给力 
select *
from cmb_usr_trx_rcd
where date(trx_time) between '2024-09-01' and '2024-09-30'
and hour(trx_time) between 1 and 5
and usr_id = '5201314520'
2026-12-01 条件过滤(1)异地男友有异常,数分闺蜜来帮忙 
select *
from cmb_usr_trx_rcd
where date(trx_time) between '2024-09-01' and '2024-09-30' and usr_id = '5201314520'
2026-12-01 条件过滤(1)异地男友有异常,数分闺蜜来帮忙 
select *
from cmb_usr_trx_rcd
where date(trx_time) between '2024-09-01' and '2024-09-30'
2026-12-01 基于共同兴趣爱好的餐厅推荐(1)-我吃过啥 
select cust_uid,mch_nm
from mt_trx_rcd1
where cust_uid = 'MT10000'
group by mch_nm
order by mch_nm
2026-12-01 基于共同兴趣爱好的餐厅推荐(1)-我吃过啥 
select cust_uid, 
mch_nm
from mt_trx_rcd1
where cust_uid = 'MT10000'
2026-12-01 多云天气天数 
select 
 city, 
 sum(
 case when con regexp '多云' then '1'
 else '0' end) as cloudy_days, 
 concat(
format(
 sum(case when con regexp '多云' then '1' else '0' end) 
 / count(*) * 100,2) , '%')as p 
from weather_rcd_china
where year(dt) = 2021
group by city 
order by p desc
2026-12-01 多云天气天数 
select 
 city, 
 sum(
 case when con regexp '多云' then '1'
 else '0' end) as cloudy_days, 
 concat(
format(
 sum(case when con regexp '多云' then '1' else '0' end) 
 / count(*) * 100,2) , '%')as p 
from weather_rcd_china
where year(dt) = 2021
group by city
2026-12-01 多云天气天数 
select 
 city, 
 sum(
 case when con regexp '多云' then '1'
 else '0' end) as cloudy_days, 
 concat(round(sum(
 case when con regexp '多云' then '1'
 else '0' end) / count(*),4) * 100, '%')as p 
from weather_rcd_china
where year(dt) = 2021
group by city
2026-12-01 多云天气天数 
select 
 city, 
 sum(
 case when con regexp '多云' then '1'
 else '0' end) as cloudy_days, 
 round(sum(
 case when con regexp '多云' then '1'
 else '0' end) / count(*),4) * 100as p 
from weather_rcd_china
where year(dt) = 2021
group by city
2026-12-01 分类(1)姿势太多很过分,分类要用CaseWhen 
select 
case when trx_amt = 288 then '1.WithHand'
when trx_amt = 388 then '2.WithMimi' 
when trx_amt = 588 then '3.BlowJobbie'
when trx_amt = 888 then '4.Doi'
when trx_amt = 1288 then'5.DoubleFly'
else '6.other'
end as ser_typ, 
count(*) as trx_cnt, 
min(date(trx_time)) as first_date
from cmb_usr_trx_rcd
where mch_nm = '红玫瑰按摩保健休闲' and usr_id = '5201314520'
group by ser_typ
order by ser_typ
2026-12-01 分类(1)姿势太多很过分,分类要用CaseWhen 
select
case when trx_amt=288 then '1.WithHand'
when trx_amt=388 then '2.WithMimi'
when trx_amt=588 then '3.BlowJobbie'
when trx_amt=888 then '4.Doi'
when trx_amt=1288 then '5.DoubleFly'
else '6.other'
end as ser_typ
,count(1) as trx_cnt
,min(date(trx_time)) as first_date
from 
cmb_usr_trx_rcd
where usr_id='5201314520' and mch_nm='红玫瑰按摩保健休闲'
group by ser_typ
order by 1
2026-12-01 分类(1)姿势太多很过分,分类要用CaseWhen 
select 
case when trx_amt = 288 then '1.Withhand'
when trx_amt = 388 then '2.WithMimi' 
when trx_amt = 588 then '3.BlowJobbie'
when trx_amt = 888 then '4.Doi'
when trx_amt = 1288 then'5.DoubleFly'
else '6.other'
end as ser_typ, 
count(*) as trx_cnt, 
min(date(trx_time)) as first_date
from cmb_usr_trx_rcd
where mch_nm = '红玫瑰按摩保健休闲' and usr_id = '5201314520'
group by ser_typ
order by ser_typ
2026-12-01 分类(1)姿势太多很过分,分类要用CaseWhen 
select 
case when trx_amt = 288 then '1.Withhand'
when trx_amt = 388 then '2.WithMimi' 
when trx_amt = 588 then '3.BlowJobbie'
when trx_amt = 888 then '4.Doi'
when trx_amt = 1288 then'5.DoubleFly'
else '6.Other'
end as ser_typ, 
count(*) as trx_cnt, 
min(date(trx_time)) as first_date
from cmb_usr_trx_rcd
where mch_nm = '红玫瑰按摩保健休闲' and usr_id = '5201314520'
group by ser_typ
order by ser_typ
2026-12-01 分类(1)姿势太多很过分,分类要用CaseWhen 
select 
case when trx_amt = 288 then '1.Withhand'
when trx_amt = 388 then '2.WithMimi' 
when trx_amt = 588 then '3.BlowJobbie'
when trx_amt = 888 then '4.Doi'
else '5.DoubleFly'
end as ser_typ, 
count(*) as trx_cnt, 
min(date(trx_time)) as first_date
from cmb_usr_trx_rcd
where mch_nm = '红玫瑰按摩保健休闲' and usr_id = '5201314520'
group by ser_typ
order by ser_typ
2026-11-27 基于共同兴趣爱好的餐厅推荐(1)-我吃过啥 
select cust_uid, mch_nm
from mt_trx_rcd1
where cust_uid = 'MT10000'
group by cust_uid, mch_nm
order by mch_nm
2026-11-27 HAVING-语数英优异的学生 
select student_id, sum(score) as total_score
 from scores
where subject in ('语文', '数学', '英语') and exam_date = '2024-06-30'
group by student_id
having total_score > 330
2026-11-27 HAVING-执教教师超过3人的科目 
select subject
from teachers
group by subject
having (count(teacher_id)) >= 3