排名

用户解题统计

过去一年提交了

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

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

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

收藏

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

评论笔记

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

提交记录

提交日期 题目名称 提交代码
2026-05-30 冬季下雪天数 
select city,
	sum(case when con like '%雪%' then 1 else 0 end) as snowy_days
from weather_rcd_china
where month(dt) in (1,2,12)
group by city
order by snowy_days desc
2026-05-30 多云天气天数 
select city,
	cloudy_days,
concat(round((cloudy_days/total)*100,2),'%') as p
from(
select city,
sum(case when con like '%多云%' then 1 else 0 end) as cloudy_days,
count(*) as total
from weather_rcd_china
where year(dt) = 2021
group by city) as t
order by round((cloudy_days/total)*100,2) desc
2026-05-30 城市平均最高气温 
select city, cast(avg(tmp_h) as decimal(4,2)) as avg_tmp_h
from weather_rcd_china
where year(dt) = 2021
group by city
order by avg_tmp_h desc
2026-05-30 城市平均最高气温 
select city, cast(avg(tmp_h) as decimal(5,2)) as avg_tmp_h
from weather_rcd_china
where year(dt) = 2021
group by city
order by avg_tmp_h desc
2026-05-30 城市平均最高气温 
select city, round(avg(tmp_h),2) as avg_tmp_h
from weather_rcd_china
where year(dt) = 2021
group by city
order by avg_tmp_h desc
2026-05-30 滴滴面试真题(2)打车订单呼叫应答时间 
select avg(timestampdiff(second,call_time,grab_time)) as avg_response_time_seconds
from didi_order_rcd
where grab_time!= '1970-01-01 00:00:00'
2026-05-30 不分类别的最火直播间 
select ks_live_t2.live_id, live_nm, count(enter_time) as enter_cnt
from ks_live_t1
join ks_live_t2 on ks_live_t1.live_id = ks_live_t2.live_id
where date(enter_time) = '2021-09-12' and date_format(enter_time,'%H') = 23
group by live_id,live_nm
order by enter_cnt desc
limit 5
2026-05-30 绘制小时进入人数曲线 
select date_format(enter_time,'%H') as hour_entered,
	count(*) as enter_count
from ks_live_t1
group by date_format(enter_time,'%H')
order by hour_entered
2026-05-30 绘制小时进入人数曲线 
select hour(enter_time) as hour_entered,
	count(*) as enter_count
from ks_live_t1
group by hour(enter_time)
order by hour(enter_time)
2026-05-30 绘制小时进入人数曲线 
select hour(enter_time) as hour_entered,
	sum(case when usr_id is not null then 1 else 0 end) over(partition by hour(enter_time) order by hour(enter_time)) as ebter_count
from ks_live_t1
2026-05-30 德州扑克起手牌-同花 
select sum(case when right(card1,1) = right(card2,1) then 1 else 0 end)/2 as cnt,
	count(*)/2 as ttl_cnt,
round(sum(case when right(card1,1) = right(card2,1) then 1 else 0 end)/count(*),3) as p
from hand_permutations
2026-05-30 德州扑克起手牌- 手对 
select id,card1,card2
from hand_permutations
where left(card1,1) = left(card2,1)
order by id
2026-05-30 德州扑克起手牌- A花 
select id,card1,card2
from hand_permutations
where (card1 like '%A%' or card2 like '%A%') and right(card1,1) = right(card2,1)
order by id
2026-05-30 德州扑克起手牌- A花 
select id,card1,card2
from hand_permutations
where card2 like '%A%' and right(card1,1) = right(card2,1)
order by id
2026-05-30 德州扑克起手牌- A花 
select id,card1,card2
from hand_permutations
where card2 like '%A%'
2026-05-30 德州扑克起手牌- A花 
select id,card1,card2
from hand_permutations
where concat(card1,card2) like 'A%'
2026-05-30 德州扑克起手牌-最强起手牌KK+ 
select id, card1, card2
from hand_permutations
where (left(card1,1) = 'A' and left(card2,1) = 'A')
	or (left(card1,1) = 'K' and left(card2,1) = 'K')
or (left(card1,1) = 'A' and left(card2,1) = 'K')
or (left(card1,1) = 'K' and left(card2,1) = 'A')
2026-05-29 曝光量最大的商品 
select t2.prd_id, prd_nm, sum(if_snd) as exposure_count
from tb_pg_act_rcd as t1
join tb_prd_map as t2 on t1.prd_id = t2.prd_id
group by t2.prd_id,prd_nm
order by exposure_count desc
limit 1