排名

用户解题统计

过去一年提交了

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

收藏

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

评论笔记

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

提交记录

提交日期 题目名称 提交代码
2025-02-24 多云天气天数 
select city,sum(case when con like '%多云%' then 1 else 0 end)as duoyun_num,concat(round(sum(case when con like '%多云%' then 1 else 0 end )/count(*)*100,2),'%') as 'p'
from weather_rcd_china 
where year(dt) = 2021 
group by city
order by 3 desc
2025-02-24 多云天气天数 
select city,sum(case when con like '%多云%' then 1 else 0 end)as duoyun_num,round(sum(case when con like '%多云%' then 1 else 0 end )/count(*),2) as 'p'
from weather_rcd_china 
where year(dt) = 2021 
group by city
order by 3 desc
2025-02-24 多云天气天数 
select city,sum(case when con like '%多云%' then 1 else 0 end)as duoyun_num,round(sum(case when con like '%多云%' then 1 else 0 end )/count(*),2) as 'p'
from weather_rcd_china 
where year(dt) = 2021 
group by city
2025-02-23 分类(1)姿势太多很过分,分类要用CaseWhen 
select 
case 
when trx_amt = 1288 then '5.DoubleFly'
when trx_amt = 888 then '4.Doi'
when trx_amt = 588 then '3.BlowJobbie'
when trx_amt = 388 then '2.WithMimi'
when trx_amt = 288 then '1.WithHand'
else '6.other'
end as ser_typ,
count(1) as trx_cnt, substr(min(trx_time),1,10) as first_date
from cmb_usr_trx_rcd 
where mch_nm = '红玫瑰按摩保健休闲' and usr_id = 5201314520
group by ser_typ
order by ser_typ;
2025-02-23 分类(1)姿势太多很过分,分类要用CaseWhen 
select 
case 
when trx_amt >= 1288 then '5.DoubleFly'
when trx_amt >= 888 then '4.Doi'
when trx_amt >= 588 then '3.BlowJobbie'
when trx_amt >= 388 then '2.WithMimi'
when trx_amt >= 288 then '1.WithHand'
else 'other'
end as ser_typ,
count(1) as trx_cnt, substr(min(trx_time),1,10) as first_date
from cmb_usr_trx_rcd 
where mch_nm = '红玫瑰按摩保健休闲' and usr_id=5201314520
group by ser_typ
order by ser_typ;
2025-02-23 分组与聚合函数(6)想知道渣男有多坏,疯狂使用GroupBy 
select usr_id,mch_nm,sum(trx_amt) as sum_trx_amt,count(1) as trx_cnt,min(trx_time) as first_time 
from cmb_usr_trx_rcd 
where usr_id=5201314520 and trx_amt >= 288 
group by usr_id,mch_nm
order by trx_cnt
2025-02-23 分组与聚合函数(1)Money全都花在哪,GroupBy来查一查 
select mch_nm,sum(trx_amt) as sum_trx_amt 
from cmb_usr_trx_rcd 
where usr_id=5201314520 and substr(trx_time,1,4)= '2024'
group by mch_nm;
2025-02-21 与X轴有且只有一个交点的一元二次函数 
select * from numbers_for_fun 
where a != 0 and b*b - 4*a*c = 0
order by id;
2025-02-21 与X轴有且只有一个交点的一元二次函数 
select * from numbers_for_fun 
where a != 0 and c = 0
order by id;
2025-02-21 开口向上且经过原点的一元二次函数 
select * from numbers_for_fun 
where a > 0 and c= 0
order by id;
2025-02-21 必过(3, -8)的一元一次函数 
select * from numbers_for_fun 
where a =0 and ((3*b+c) = (-8))
order by id;
2025-02-21 不经过第三象限的一元一次函数 
select * from numbers_for_fun 
where a = 0 and b <0 and c >=0
order by id;
2025-02-21 特定渠道的中档单价用户 
select * from apple_pchs_rcd 
where order_channel = '官网' and payment_method = 'Apple Pay'
and product_price >= 3000
order by order_id;
2025-02-21 文科潜力股 
select * from scores 
where exam_date = '2024-06-30'
and subject in ('历史','政治','地理')
and score >= 90
order by score desc ,student_id,subject;
2025-02-21 给英语成绩中上水平的学生拔尖 
select * from scores 
where exam_date = '2024-06-30'
and (subject = '英语' and score between 100 and 110)
order by score desc;
2025-02-21 找出三个班级的女生 
select * from students 
where class_code IN ('C219','C220','C221') and gender = 'f'
order by student_id;
2025-02-21 大于J小于K的手牌 
select * from hand_permutations
where card1 >'J' and card1 < 'K' 
and card2 >'J' and card2 < 'K'
order by id;
2025-02-21 2000年以前出生的男歌手 
select * from singer_info 
where birth_date < '2000-01-01' and gender = 'm';
2025-02-21 2000年以前出生的男歌手 
select * from singer_info 
where birth_date < '2000-01-01';
2025-02-21 总分超过300分的学生 
select student_id from subject_score 
where (chinese+ math + english)>= 300;