牛客695261949号
牛客695261949号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客695261949号的博客
全部文章
(共92篇)
题解 | 多行输出
str1,"\n",str2 为什么不行 ,str2前面好像出现了空格?? str1='Hello World!' str2='Hello Nowcoder!' print(str1+"\n"+str2)
2025-04-07
0
17
题解 | Hello World!
这题通过率为什么只有21%? str='Hello World!' print(str)
2025-04-07
0
13
题解 | 各个部门实际平均薪资和男女员工实际平均薪资
不要写else 0 ,else 0 算均值会出错, 最后将空处理为0 select department , round(avg(sal),2) as average_actual_salary , round(ifnull(avg(case when staff_gender='male' th...
2025-04-07
0
17
题解 | 统计每个产品的销售情况
购买量最多的客户年龄段(customer_age_group) 1、每个产品每个用户购买数量 2、根据每个产品每个用户购买数量和用户年龄,统计购买数量降序年龄升序排名 3、排名第一的用户年龄 4、处理年龄区间 select product_id , total_sales , unit_price...
2025-04-07
1
34
题解 | 商品id数据清洗统计
正则, $末尾 , ^ 非, +一个或多个 select regexp_substr(o.order_id,"[^_]+$") as product_id, count(*) from order_log o group by product_id select sub...
2025-04-07
0
14
题解 | top2的薪水排名
请问跟上一题有什么区别 select department,employee_name, salary from( select department,employee_name, salary,rank()over(partition by department order by salary d...
2025-04-07
0
13
题解 | 每个部门薪资排名前两名员工
select department,employee_name, salary from( select department,employee_name, salary,rank()over(partition by department order by salary desc) as rn f...
2025-04-07
0
12
题解 | 商品销售排名
select product_name, cast(sum(price) as signed) as price from user_client_log l inner join product_info p on l.product_id= p.product_id where step= '...
2025-04-07
0
18
题解 | 商品价格排名
令人困惑的题目,排名前2的3个,那也就是有相同排名的? select product_id, product_name, type ,price from ( select product_id, product_name, type ,price, rank()over(partition b...
2025-04-07
0
22
题解 | 统计快递从创建订单到发出间隔时长
select round(avg(timestampdiff(minute,create_time,out_time ) /60),3) as time from exp_action_tb a inner join express_tb b on a.exp_number = b.exp_nu...
2025-04-07
0
19
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页