排名

用户解题统计

过去一年提交了

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

收藏

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

评论笔记

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

提交记录

提交日期 题目名称 提交代码
2026-04-09 HAVING-每次成绩都不低于80分的学生 
select student_id,max(score),min(score),avg(score) from scores group by student_id having min(score)>=80 order by student_id
2026-04-09 HAVING-每次成绩都不低于80分的学生 
select student_id,max(score),min(score),avg(score) from scores where score>80 group by exam_date,student_id order by student_id
2026-04-09 GROUP BY-年龄最大学生的出生日期 
select class_code,min(birth_date) from students group by class_code order by class_code
2026-04-09 GROUP BY-各科目最高分、最低分 
select subject,max(score),min(score) from scores group by subject order by subject
2026-04-09 GROUP BY-各科目平均分 
select subject,avg(score) as average_score from scores where exam_date ='2024-06-30' group by subject order by average_score
2026-04-09 GROUP BY-各班级人数 
select class_code,count(student_id) as student_count from students group by class_code order by student_count
2026-04-09 按照车类统计行程次数 
select car_cls,count(*) as trip_count from didi_sht_rcd group by car_cls order by trip_count desc
2026-04-09 多云天气天数 
select
	city,
	count(case when con like '%多云%' then 1 end) as cloudy_days,
	concat(round(
		count(case when con like '%多云%' then 1 end) / count(con),
		2)*100.0,'%'
	) as p
from
	weather_rcd_china
where
	year(dt) = 2021
group by
	city
order by 
	cloudy_days desc
2026-04-09 多云天气天数 
select
	city,
	count(case when con like '%多云%' then 1 end) as cloudy_days,
	concat(round(
		count(case when con like '%多云%' then 1 end) / count(con),
		2),'%'
	)*100.0 as p
from
	weather_rcd_china
where
	year(dt) = 2021
group by
	city
order by 
	cloudy_days desc
2026-04-09 多云天气天数 
select
	city,
	count(case when con like '%多云%' then 1 end) as cloudy_days,
	concat(round(
		count(case when con like '%多云%' then 1 end) * 100.0 / count(con),
		2),'%'
	) as p
from
	weather_rcd_china
where
	year(dt) = 2021
group by
	city
order by 
	cloudy_days desc
2026-04-09 多云天气天数 
select
	city,
	count(case when con like '%多云%' then 1 end) as cloudy_days,
	round(
		count(case when con like '%多云%' then 1 end) * 1.0 / count(con),
		2
	) as p
from
	weather_rcd_china
where
	year(dt) = 2021
group by
	city
order by 
	cloudy_days desc
2026-04-09 多云天气天数 
select
	city,
	count(case when con like '%多云%' then 1 end) as cloudy_days,
	round(
		count(case when con like '%多云%' then 1 end) * 1.0 / count(con),
		2
	) as p
from
	weather_rcd_china
where
	year(dt) = 2021
group by
	city;
2026-04-09 分类(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(trx_amt) as trx_cnt,
		min(date(trx_time)) as first_date
from
		cmb_usr_trx_rcd
where
		usr_id = '5201314520'
	and mch_nm = '红玫瑰按摩保健休闲'
group by
		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
order by ser_typ
2026-04-09 分类(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(trx_amt) as trx_cnt,
		min(trx_time) as first_date
from
		cmb_usr_trx_rcd
where
		usr_id = '5201314520'
	and mch_nm = '红玫瑰按摩保健休闲'
group by
		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
order by ser_typ
2026-04-09 分类(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 '不知名项目'
	end as ser_typ,
		count(trx_amt) as trx_cnt,
		min(trx_time) as first_date
from
		cmb_usr_trx_rcd
where
		usr_id = '5201314520'
	and mch_nm = '红玫瑰按摩保健休闲'
group by
		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 '不知名项目'
	end
order by ser_typ
2026-04-09 分类(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 '不知名项目'
	end as ser_typ,
		count(trx_amt) as trx_cnt,
		min(trx_time) as first_date
from
		cmb_usr_trx_rcd
where
		usr_id = '5201314520'
	and mch_nm = '红玫瑰按摩保健休闲'
group by
		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 '不知名项目'
	end
2026-04-09 分类(1)姿势太多很过分,分类要用CaseWhen 
select
	case
		when trx_amt = 288 then 'WithHand'
		when trx_amt = 388 then 'WithMimi'
		when trx_amt = 588 then 'BlowJobbie'
		when trx_amt = 888 then 'Doi'
		when trx_amt = 1288 then 'DoubleFly'
		else '不知名项目'
	end as ser_typ,
		count(trx_amt) as trx_cnt,
		min(trx_time) as first_date
from
		cmb_usr_trx_rcd
where
		usr_id = '5201314520'
	and mch_nm = '红玫瑰按摩保健休闲'
group by
		case
			when trx_amt = 288 then 'WithHand'
when trx_amt = 388 then 'WithMimi'
when trx_amt = 588 then 'BlowJobbie'
when trx_amt = 888 then 'Doi'
when trx_amt = 1288 then 'DoubleFly'
		else '不知名项目'
	end
2026-04-09 分组与聚合函数(6)想知道渣男有多坏,疯狂使用GroupBy 
select usr_id,mch_nm,sum(trx_amt),count(mch_nm) as trx_cnt,min(trx_time) as first_time from cmb_usr_trx_rcd where trx_amt >= 288 and usr_id = '5201314520'group by mch_nm order by trx_cnt desc
2026-04-09 分组与聚合函数(1)Money全都花在哪,GroupBy来查一查 
select mch_nm,sum(trx_amt) from cmb_usr_trx_rcd where usr_id = '5201314520' and trx_time like '%2024%' group by mch_nm
2026-04-09 不经过第三象限的一元一次函数 
select * from numbers_for_fun where a=0 and b>0 order by id;