排名

用户解题统计

过去一年提交了

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

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

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

收藏

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

评论笔记

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

提交记录

提交日期 题目名称 提交代码
2026-06-24 海王发红包 
select
snd_usr_id
from
tx_red_pkt_rcd
where pkt_amt in ('200','520')
group by snd_usr_id
having count(*)>=5
order by snd_usr_id
2026-06-24 海王发红包 
select
snd_usr_id,count(*) as cnt
from
tx_red_pkt_rcd
where pkt_amt in ('200','520')
group by snd_usr_id
having cnt>=5
order by snd_usr_id
2026-06-24 绘制小时进入人数曲线 
select
lpad(new.hour_time,2,'0'), new.cnt
from(
	select
	hour(enter_time) as hour_time,count(*) as cnt
from
ks_live_t1 t1
join ks_live_t2 t2 on t1.live_id = t2.live_id
group by hour_time
) as new
order by hour_time
2026-06-24 特定歌曲的播放记录 
select
*
from
listen_rcd
where
start_time between '2023-12-10 00:00:00' and '2023-12-31 23:59:59'
and song_id = '13'
order by start_time
2026-06-23 查询播放量为0的歌手及其专辑 
select
 sgi.singer_id,sgi.singer_name,ai.album_id,ai.album_name,count(*) as play_count
 from
 listen_rcd lr
 left join song_info si on lr.song_id = si.song_id
 left join singer_info sgi on si.origin_singer_id = sgi.singer_id
 left join album_info ai on si.album_id = ai.album_id
group by sgi.singer_id,ai.album_id
having play_count = 0
2026-06-23 北京有雪的日子 
select
dt,tmp_h,tmp_l,con
from
weather_rcd_china
where con like '%雪%' and city = 'beijing'
2026-06-23 北京有雪的日子 
select
dt,tmp_h,tmp_l,con
from
weather_rcd_china
where con like '%雪%'
2026-06-23 歌手名字大写 
select
upper(singer_name) as up_singer_name
from
singer_info
2026-06-23 统计字符长度 
select
singer_name,char_length(singer_name)
from
singer_info
2026-06-23 统计字符长度 
select
singer_name,length(singer_name)
from
singer_info
2026-06-23 按歌手名字字符长度统计歌手个数 
select
 length(singer_name) as len_singer_name, count(*) as cnt_len
 from
 singer_info
 group by len_singer_name
2026-06-23 美狗计 
select
replace(song_name,'人','狗') as new_song_name
from
song_info
where song_name like '%人%'
2026-06-23 美狗计 
select
replace(song_name,'人','狗') as new_song_name
from
song_info
2026-06-23 替换空格 
select
replace(singer_name ,' ','') as new_singer_name
from
singer_info
2026-06-23 替换空格 
select
replace(singer_name ,' ','""') as new_singer_name
from
singer_info
2026-06-23 滴滴出行订单分析(二)用户打车次数排名 
select
cust_uid, cnt as trip_cnt, rank() over(order by cnt desc, cust_uid) as rk
from(
	select
cust_uid,count(*) as cnt
from
didi_sht_rcd
group by cust_uid
) as t
limit 10
2026-06-23 滴滴出行订单分析(二)用户打车次数排名 
select
cust_uid, cnt as trip_cnt, rank() over(order by cnt, cust_uid) as rk
from(
	select
cust_uid,count(*) as cnt
from
didi_sht_rcd
group by cust_uid
) as t
limit 10
2026-06-23 滴滴出行订单分析(二)用户打车次数排名 
select
cust_uid, cnt, rank() over(order by cnt, cust_uid) as rk
from(
	select
cust_uid,count(*) as cnt
from
didi_sht_rcd
group by cust_uid
) as t
limit 10
2026-06-23 美团(一)用户消费偏好分析 
select mch_typ2,count(*) as trx_cnt, sum(trx_amt) as sum_trx from mt_trx_rcd group by mch_typ2 order by trx_cnt desc
2026-06-22 哈啰出行(一)骑行时长分析 
select
round(avg(timestampdiff(minute,start_time,end_time)),2) as avg_time,
max(timestampdiff(minute,start_time,end_time)) as max_time,
count(*) as cnt
from
	hello_bike_riding_rcd
group by
	user_id