首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
Alvin1314
中软国际_开发
获赞
0
粉丝
0
关注
3
看过 TA
0
男
东莞理工学院
2017
C#工程师
IP属地:广东
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑Alvin1314吗?
发布(14)
评论
刷题
收藏
Alvin1314
关注TA,不错过内容更新
关注
2024-12-19 23:01
中软国际_开发
题解 | 统计复旦用户8月练题情况
SELECT a.device_id, a.university, SUM(CASE WHEN b.question_id IS NULL THEN 0 ELSE 1 END) question_cnt, SUM(CASE WHEN b.result = 'right' THEN 1 ELSE 0 END) right_question_cnt FROM user_profile a LEFT JOIN question_practice_detail b ON a.device_id = b.device_id AND b.date LIKE '202...
0
点赞
评论
收藏
分享
2024-12-19 22:41
中软国际_开发
题解 | 找出每个学校GPA最低的同学
select device_id, a.university, a.gpa from user_profile a join (select university, min(gpa) mingpa from user_profile c group by university) b on a.university = b.university and a.gpa = b.mingpa order by university 考查的就是子查询,可以用in,也可以用join,但我喜欢用join,join的性能会更好一点
0
点赞
评论
收藏
分享
2024-12-19 22:33
中软国际_开发
题解 | 截取出年龄
SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(profile,',',-2),',',1) age ,count(1) number FROM user_submit group by SUBSTRING_INDEX(SUBSTRING_INDEX(profile,',',-2),',',1) 考查SUBSTRING_INDEX的双重使用
0
点赞
评论
收藏
分享
2024-12-19 22:26
中软国际_开发
题解 | 提取博客URL中的用户名
SELECT device_id, SUBSTRING_INDEX(blog_url,'/',-1) user_name FROM user_submit 单纯的考SUBSTRING_INDEX函数,一点难度也没有
0
点赞
评论
收藏
分享
2024-12-19 22:21
中软国际_开发
题解 | 统计每种性别的人数
SELECT SUBSTRING_INDEX(profile,',',-1) gender, count(1) number FROM user_submit group by SUBSTRING_INDEX(profile,',',-1) 主要考字符串的拆分SUBSTRING_INDEX与分组求和
SQL练习
0
点赞
评论
收藏
分享
2023-06-18 22:35
中软国际_开发
题解 | #找出每个学校GPA最低的同学#
select a.device_id,a.university,a.gpa from ( select a.device_id,a.university,gpa,min(gpa) over(partition by a.university) mingpa from user_profile a ) a where a.gpa = mingpa
SQL练习
0
点赞
评论
收藏
分享
2023-06-18 22:23
中软国际_开发
题解 | #计算用户的平均次日留存率#
select count( distinct b.device_id,b.date)/count(distinct a.device_id,a.date) avg_ret from question_practice_detail a left join question_practice_detail b on a.device_id = b.device_id and (a.date =b.date+1 )
SQL练习
0
点赞
评论
收藏
分享
2023-06-18 00:22
中软国际_开发
题解 | #浙大不同难度题目的正确率#
select difficult_level, round(sum(case result when 'right' then 1 else 0 end )*1.0/sum(1),4) correct_rate from user_profile a join question_practice_detail b on a.device_id = b.device_id join question_detail c on c.question_id = b.question_id where a.university = "浙江大学" group by difficult_level ord...
SQL练习
0
点赞
评论
收藏
分享
2023-06-18 00:16
中软国际_开发
题解 | #统计复旦用户8月练题情况#
select a.device_id,a.university,count(question_id) question_cnt,sum(case result when "right" then 1 else 0 end ) right_question_cnt from user_profile a left join question_practice_detail b on a.device_id = b.device_id and date between "2021-08-01" and "2021-08-31" where university ="复旦大学" group by ...
SQL练习
0
点赞
评论
收藏
分享
2023-06-18 00:00
中软国际_开发
题解 | #二维数组中的查找#
using System; using System.Collections.Generic; class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param target int整型 * @param array int整型二维数组 * @return bool布尔型 */ public bool Find (int target, List<List<int>> array) { ...
算法代码编程
0
点赞
评论
收藏
分享
2023-06-17 18:59
中软国际_开发
题解 | #二分查找-I#
using System; using System.Collections.Generic; using System.Linq; class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型一维数组 * @param target int整型 * @return int整型 */ public int search (List<int> nums, int target) { ...
算法代码编程
0
点赞
评论
收藏
分享
2023-06-17 09:32
中软国际_开发
题解 | #二叉树的最大深度#
using System; using System.Collections.Generic; /* public class TreeNode { public int val; public TreeNode left; public TreeNode right; public TreeNode (int x) { val = x; } } */ class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * ...
算法代码编程
0
点赞
评论
收藏
分享
2022-05-20 00:45
中软国际_开发
2022-05-20
在牛客打卡2天,今天学习:刷题 22 道/代码提交 22 次
每日监督打卡
0
点赞
评论
收藏
分享
2022-05-19 23:33
中软国际_开发
学习打卡
2022-05-19
在牛客打卡1天,今天也很努力鸭!
每日监督打卡
0
点赞
评论
收藏
分享
1
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务