全站第 53/1357 名
解决了 31/335 题
中等: 0/76
入门: 26/77
困难: 0/29
简单: 5/114
草履虫: 0/39
过去1年一共提交 111 次
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
勋章 ①金银铜:在竞赛中获得第一二三名;②好习惯:自然月10天提交;③里程碑:解决1/2/5/10/20/50/100/200题;④每周打卡挑战:完成每周5题,每年1月1日清零。








收藏
收藏日期 | 题目名称 | 解决状态 |
---|---|---|
2025-03-29 | 不分类别的最火直播间 | 未解决 |
2025-03-29 | S1年级物理成绩前10名(1) | 未解决 |
2025-03-29 | 查询播放量为0的歌手及其专辑 | 未解决 |
2025-03-29 | HAVING-每次成绩都不低于80分的学生 | 未解决 |
2025-03-29 | CASE WHEN-男女学生的数量 | 已解决 |
2025-03-27 | 表连接(2)渣男去过我对象没去过,那就用LeftJoin | 未解决 |
2025-03-27 | 表连接(1)你们难道都去过?那就试试用InnerJoin | 已解决 |
2025-03-27 | 经过第四象限的所有函数 | 未解决 |
2025-03-26 | 分类(1)姿势太多很过分,分类要用CaseWhen | 未解决 |
2025-03-26 | 分组与聚合函数(5)五花八门的项目,其实都有固定套路(2) | 已解决 |
评论笔记
评论日期 | 题目名称 | 评论内容 | 站长评论 |
---|---|---|---|
没有评论过的题目。 |
提交记录
提交日期 | 题目名称 | 提交代码 |
---|---|---|
2025-03-31 | 城市平均最高气温 |
select city,cast(avg(tmp_h) as decimal(4,2)) from weather_rcd_china where year(dt) = '2021' group by city ; |
2025-03-31 | 城市平均最高气温 |
select city,avg(tmp_h) from weather_rcd_china where year(dt) = '2021' group by city ; |
2025-03-31 | 按照车类统计行程次数 |
select d.car_cls,count(*) from didi_sht_rcd d group by car_cls order by count(*) desc |
2025-03-29 | HAVING-执教教师超过3人的科目 |
select subject from teachers group by subject having count(name)>=3 ; |
2025-03-29 | HAVING-每次成绩都不低于80分的学生 |
select student_id from scores where score>=80 or score is null order by student_id desc ; |
2025-03-29 | HAVING-每次成绩都不低于80分的学生 |
select student_id from scores where score>=80 or score is null order by student_id ; |
2025-03-29 | HAVING-每次成绩都不低于80分的学生 |
select student_id from scores where score>=80 or score is null ; |
2025-03-29 | CASE WHEN-老中青教师数量 |
select case when year(enter_date) >= '2010' then '青年教师' whenyear(enter_date) < '2000' then '资深教师' else '中年教师' end as teacher_type, count(*) from teachers group by teacher_type ; |
2025-03-29 | CASE WHEN-男女学生的数量 |
SELECT CASE WHEN gender = 'm' THEN '男' WHEN gender = 'f' THEN '女' END AS gender_text, COUNT(*) AS student_count FROM students GROUP BY gender_text; |
2025-03-29 | 聚合函数-比较两位同学的数学成绩 |
select student_id,max(score),min(score),avg(score) from scores where student_id in (460093,735011 ) and subject='数学' group by student_id ; |
2025-03-29 | 聚合函数-735011学生的语文成绩 |
select max(score) ,min(score),avg(score) from scores where student_id=735011 and subject='语文' ; |
2025-03-29 | GROUP BY-年龄最大学生的出生日期 |
select class_code,min(birth_date) from students group by class_code order by class_code ; |
2025-03-29 | GROUP BY-各科目最高分、最低分 |
select subject,max(score),min(score) from scores group by subject order by subject ; |
2025-03-29 | GROUP BY-各科目平均分 |
select subject,avg(score) from scores where date(exam_date)='2024-06-30' group by subject order by subject ; |
2025-03-29 | GROUP BY-各班级人数 |
select class_code,count(*) from students group by class_code order by count(*) desc ; |
2025-03-27 | 冬季下雪天数 |
selectcity,count(*) from weather_rcd_china where month(dt) in (1,2,12) and con like '%雪%' group by city order by count(*) desc ; |
2025-03-27 | 冬季下雪天数 |
selectcity,count(*) from weather_rcd_china where month(dt) in (1,2,12) and con like '%雪%' group by city ; |
2025-03-27 | 人数最多的学生姓氏 |
select left(name,1) ,count(name) from students group by left(name,1) order by count(name) desc limit 5 ; |
2025-03-27 | 德州扑克起手牌- 手对 |
select * from hand_permutations where left(card1,1)=left(card2,1) ; |
2025-03-27 | 德州扑克起手牌- A花 |
select * from hand_permutations where left(card1,2)=left(card2,2) and (card1 like 'A%' or card2 like 'A%') order by id ; |