排名

用户解题统计

过去一年提交了

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

收藏

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

评论笔记

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

提交记录

提交日期 题目名称 提交代码
2025-07-15 冬季下雪天数 
select city,sum(case when con like '%雪%' then 1 else 0 end) as snow_days from weather_rcd_china
where month(dt) in (12,1,2)
group by city
2025-07-15 冬季下雪天数 
select city,sum(case when con like '%雪%' then 1 else 0 end) as snow_days from weather_rcd_china
group by city
2025-07-15 条件过滤(1)异地男友有异常,数分闺蜜来帮忙 
select * from cmb_usr_trx_rcd 
where usr_id='5201314520' and date(trx_time) between '2024-09-01' and '2024-09-30'
2025-07-15 基于共同兴趣爱好的餐厅推荐(1)-我吃过啥 
select cust_uid,mch_nm from mt_trx_rcd1
where cust_uid='MT10000'
group by mch_nm
2025-07-15 HAVING-语数英优异的学生 
select student_id,sum(score) as total_score from scores
where exam_date='2024-06-30' and (subject='语文' or subject='数学' or subject='英语')
group by student_id
having total_score>330
2025-07-15 HAVING-语数英优异的学生 
select student_id,sum(score) as total_score from scores
where exam_date='2024-06-30' and (subject='语文' or subject='数学' or subject='英语')
group by student_id
having total_score>=330
2025-07-15 HAVING-执教教师超过3人的科目 
select subject, count(subject) as num from teachers
group by subject 
having num>=3
2025-07-15 GROUP BY-年龄最大学生的出生日期 
select class_code, min(birth_date) as oldest from students
group by class_code
order by class_code
2025-07-15 GROUP BY-各科目最高分、最低分 
select subject, max(score) as top, min(score) as bottom from scores
group by subject
2025-07-15 GROUP BY-各科目平均分 
select subject, avg(score) as avg from scores
where exam_date='2024-06-30'
group by subject
2025-07-15 GROUP BY-各科目平均分 
select subject, avg(score) as avg from scores
group by subject
2025-07-15 GROUP BY-各班级人数 
select class_code,count(student_id) as student_amt from students
group by class_code
2025-07-15 多云天气天数 
select city, count(con) as cnt,concat(round(count(con)/365*100,2),'%') as p
from weather_rcd_china
where year(dt)=2021 and con like '%多云%'
group by city
2025-07-15 多云天气天数 
select city, count(con) as cnt,count(con)/365 as p
from weather_rcd_china
where year(dt)=2021 and con like '%多云%'
group by city
2025-07-15 分类(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(3)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
2025-07-15 分类(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(3)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
2025-07-15 分类(1)姿势太多很过分,分类要用CaseWhen 
select case when trx_amt=288 then '1.withand'
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(3)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
2025-07-15 分类(1)姿势太多很过分,分类要用CaseWhen 
select case when trx_amt=288 then '1.withand'
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(3)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
2025-07-15 分类(1)姿势太多很过分,分类要用CaseWhen 
select case when trx_amt=288 then '1.withand'
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(3)as trx_cnt,min(trx_time)as first_date
from cmb_usr_trx_rcd
where mch_nm='红玫瑰按摩保健休闲' and usr_id='5201314520'
group by ser_typ
2025-07-15 分组与聚合函数(6)想知道渣男有多坏,疯狂使用GroupBy 
select usr_id,mch_nm,sum(trx_amt),count(trx_time) as trx_cnt,min(trx_time) as first_time 
from cmb_usr_trx_rcd
where usr_id='5201314520' and trx_amt>=288
group by mch_nm
order by trx_cnt desc